0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-15 04:30:25 +00:00

expect header parses to an atom (continue)

This commit is contained in:
jmccaughey 2015-05-29 15:07:22 -07:00
parent 2718698895
commit 427eb3b622

View file

@ -388,7 +388,7 @@ body(Req=#http_req{body_state=waiting}, Opts) ->
_ ->
ExpectHeader = parse_header(<<"expect">>, Req),
ok = case ExpectHeader of
[<<"100-continue">>] -> continue(Req);
continue -> continue(Req);
_ -> ok
end
end,