0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00
cowboy/test
Alexey Lebedeff 8c60dd6c1b 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 15:30:09 +02:00
..
handlers Reply with 400 on header parsing crash 2014-07-12 12:09:43 +02:00
http_SUITE_data Remove deprecated body reading interface 2014-07-12 15:42:45 +02:00
ws_SUITE_data Enable Autobahn Test Suite by default 2014-04-20 22:20:54 +02: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 Make loop handlers work with SPDY 2014-04-26 13:46:55 +02:00
cowboy_error_h.erl Make loop handlers work with SPDY 2014-04-26 13:46:55 +02:00
cowboy_test.erl Make loop handlers work with SPDY 2014-04-26 13:46:55 +02:00
eunit_SUITE.erl Start applications directly from the ct hook 2014-04-22 20:52:08 +02:00
http_SUITE.erl Use 'Connection' header only when necessary 2015-08-07 15:30:09 +02:00
loop_handler_SUITE.erl Make loop handlers work with SPDY 2014-04-26 13:46:55 +02:00
spdy_SUITE.erl Drop R15 support 2014-07-12 14:19:29 +02:00
ws_SUITE.erl Move listener initialization to cowboy_test 2014-04-22 22:50:45 +02:00