]> git.ipfire.org Git - thirdparty/squid.git/commit
HTTP: do not allow Proxy-Connection to override Connection header
authorAmos Jeffries <squid3@treenet.co.nz>
Thu, 8 Sep 2016 08:06:43 +0000 (20:06 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 8 Sep 2016 08:06:43 +0000 (20:06 +1200)
commit1c4feb505b75772519fe47f907ad42117020696d
tree1f5ce7734c07b0a8507c3a72a33956468fc57763
parentd267fa9cf63dc6d5028f85dac5dcad2fed885e64
HTTP: do not allow Proxy-Connection to override Connection header

Proxy-Connection header is never actually valid, it is relevant in
HTTP/1.0 messages only when Connection header is missing and not
relevant at all in HTTP/1.1 messages.

This fixes part of the behaviour, making Squid use Connection header
for persistence (keep-alive vs close) checking if one is present
instead of letting Proxy-Connection override it.

TODO: Proxy-Connection still needs to be ignored completely when
      the message version is HTTP/1.1.
src/HttpHeaderTools.cc
src/HttpHeaderTools.h