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:
parent
138cccb4f9
commit
fd786ef233
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue