Browse files

Fix a crash in response_connection when Name is an atom =/= 'Connection'

  • Loading branch information...
1 parent 138cccb commit fd786ef2334626434737034ce32bcc8c588a7e1f Loïc Hoguin committed Oct 7, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/cowboy_http_req.erl
View
1 src/cowboy_http_req.erl
@@ -390,6 +390,7 @@ response_connection([], Connection) ->
response_connection([{Name, Value}|Tail], Connection) ->
case Name of
'Connection' -> response_connection_parse(Value);
+ Name when is_atom(Name) -> response_connection(Tail, Connection);
Name ->
Name2 = cowboy_bstr:to_lower(Name),
case Name2 of

0 comments on commit fd786ef

Please sign in to comment.