aboutsummaryrefslogtreecommitdiffstats
path: root/test/handlers
diff options
context:
space:
mode:
authorAlexey Lebedeff <[email protected]>2015-07-28 23:20:51 +0300
committerLoïc Hoguin <[email protected]>2015-08-07 12:48:07 +0200
commitb290b88a67204f8ba5be94dda759f0cc2baa18be (patch)
treeddbb3c97bd182b61cf3c3ab38cf74eb04bb2ec0a /test/handlers
parente25634cd9db82a4760087a2ba68d4c6a76353d66 (diff)
downloadcowboy-b290b88a67204f8ba5be94dda759f0cc2baa18be.tar.gz
cowboy-b290b88a67204f8ba5be94dda759f0cc2baa18be.tar.bz2
cowboy-b290b88a67204f8ba5be94dda759f0cc2baa18be.zip
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.
Diffstat (limited to 'test/handlers')
0 files changed, 0 insertions, 0 deletions