0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00
cowboy/src
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
..
cowboy.erl Add HTTP/2 support preview 2015-06-11 17:04:21 +02:00
cowboy_app.erl Add +warn_missing_spec and fix specs 2014-03-27 11:30:44 +01:00
cowboy_bstr.erl Remove outdated comments, all edoc, plus a few minor tweaks 2014-03-26 19:05:59 +01:00
cowboy_clock.erl Fix a compile error introduced in previous commit 2015-05-06 17:37:20 +03:00
cowboy_constraints.erl Breaking update of the cowboy_req interface 2014-09-23 16:43:29 +03:00
cowboy_handler.erl Add optional callbacks 2015-07-27 23:58:58 +02:00
cowboy_http2.erl Fix compilation error due to previous commit 2015-06-12 00:33:13 +02:00
cowboy_loop.erl Add optional callbacks 2015-07-27 23:58:58 +02:00
cowboy_middleware.erl Rename 'halt' to 'stop' for better consistency 2014-11-07 20:19:05 +02:00
cowboy_protocol.erl Use erlang:monotonic_time instead of os:timestamp 2015-07-27 17:31:24 +02:00
cowboy_req.erl Use 'Connection' header only when necessary 2015-08-07 12:48:07 +02:00
cowboy_rest.erl Add optional callbacks 2015-07-27 23:58:58 +02:00
cowboy_router.erl Add a test with host ending in a dot in the router 2015-02-01 19:34:10 +01:00
cowboy_spdy.erl Merge branch 'add_spdy_record_field_type' of https://github.com/sile/cowboy 2015-02-16 18:09:43 +01:00
cowboy_static.erl Replace some /binary to /bits in binary pattern matching 2014-10-03 18:25:29 +03:00
cowboy_stream.erl Add HTTP/2 support preview 2015-06-11 17:04:21 +02:00
cowboy_sub_protocol.erl Rename 'halt' to 'stop' for better consistency 2014-11-07 20:19:05 +02:00
cowboy_sup.erl Add +warn_missing_spec and fix specs 2014-03-27 11:30:44 +01:00
cowboy_tls.erl Add HTTP/2 support preview 2015-06-11 17:04:21 +02:00
cowboy_websocket.erl Add optional callbacks 2015-07-27 23:58:58 +02:00