mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
![]() Fixes #839 when 'Connection: Keep-Alive' wasn't sent in a HTTP/1.0 response. Now the usage of 'Connection' header is consistent with current protocol version: when this header is not specified explicitly in the response, HTTP/1.0 implies 'Connection: close' and HTTP/1.1 implies 'Connection: Keep-Alive'. So if current 'Connection' value matches the default value of current protocol, we won't state obvious fact in the response; and vice versa. Amended to fix and improve tests, and revert the variable name change from HTTP11Headers to StdHeaders. I think it's still good to leave it as is because it's not really a standard header for HTTP/1.0, and it's gone from HTTP/2 entirely. |
||
---|---|---|
.. | ||
handlers | ||
http_SUITE_data | ||
ws_SUITE_data | ||
cover.spec | ||
cowboy_ct_hook.erl | ||
cowboy_test.erl | ||
http_SUITE.erl | ||
loop_handler_SUITE.erl | ||
rfc7230_SUITE.erl | ||
spdy_SUITE.erl | ||
ws_SUITE.erl |