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. |
||
---|---|---|
.. | ||
cowboy.erl | ||
cowboy_app.erl | ||
cowboy_bstr.erl | ||
cowboy_clock.erl | ||
cowboy_constraints.erl | ||
cowboy_handler.erl | ||
cowboy_http2.erl | ||
cowboy_loop.erl | ||
cowboy_middleware.erl | ||
cowboy_protocol.erl | ||
cowboy_req.erl | ||
cowboy_rest.erl | ||
cowboy_router.erl | ||
cowboy_spdy.erl | ||
cowboy_static.erl | ||
cowboy_stream.erl | ||
cowboy_sub_protocol.erl | ||
cowboy_sup.erl | ||
cowboy_tls.erl | ||
cowboy_websocket.erl |