0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00
cowboy/test
Alexey Lebedeff b290b88a67 Use 'Connection' header only when necessary
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.
2015-08-07 12:48:07 +02:00
..
handlers Add rfc7230 test suite and update others to recent Gun 2015-05-05 19:59:37 +03:00
http_SUITE_data Add rfc7230 test suite and update others to recent Gun 2015-05-05 19:59:37 +03:00
ws_SUITE_data Improve handler interface and documentation 2014-09-30 20:12:13 +03:00
cover.spec Use ct_run instead of rebar ct for running ct tests 2013-01-04 17:56:49 +01:00
cowboy_ct_hook.erl Add rfc7230 test suite and update others to recent Gun 2015-05-05 19:59:37 +03:00
cowboy_test.erl Add rfc7230 test suite and update others to recent Gun 2015-05-05 19:59:37 +03:00
http_SUITE.erl Use 'Connection' header only when necessary 2015-08-07 12:48:07 +02:00
loop_handler_SUITE.erl Add rfc7230 test suite and update others to recent Gun 2015-05-05 19:59:37 +03:00
rfc7230_SUITE.erl Add rfc7230 test suite and update others to recent Gun 2015-05-05 19:59:37 +03:00
spdy_SUITE.erl Add rfc7230 test suite and update others to recent Gun 2015-05-05 19:59:37 +03:00
ws_SUITE.erl Fix autobahn test suite report link when used in CI 2015-07-22 23:57:57 +02:00