aboutsummaryrefslogtreecommitdiffstats
path: root/CHANGELOG.md
diff options
context:
space:
mode:
authorAlexey Lebedeff <[email protected]>2015-07-28 23:20:51 +0300
committerLoïc Hoguin <[email protected]>2015-08-07 15:30:09 +0200
commit8c60dd6c1b56aeef4493142adcbd8fb0ab6917ef (patch)
tree4181c522ac1f91491c92c13dfcc768c5fbc6b666 /CHANGELOG.md
parent19a279dfdc923091616bcdd700e1a59e4c2404f4 (diff)
downloadcowboy-8c60dd6c1b56aeef4493142adcbd8fb0ab6917ef.tar.gz
cowboy-8c60dd6c1b56aeef4493142adcbd8fb0ab6917ef.tar.bz2
cowboy-8c60dd6c1b56aeef4493142adcbd8fb0ab6917ef.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 'CHANGELOG.md')
0 files changed, 0 insertions, 0 deletions