0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00

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

This commit is contained in:
Loïc Hoguin 2011-10-07 16:14:39 +02:00
parent 138cccb4f9
commit fd786ef233

View file

@ -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