]> git.ipfire.org Git - thirdparty/squid.git/commit - src/wordlist.cc
Bug 419: Hop by Hop headers MUST NOT be forwarded (attempt 2)
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 9 Feb 2009 05:33:18 +0000 (18:33 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 9 Feb 2009 05:33:18 +0000 (18:33 +1300)
commite1ea7456858b217f68677a53c81d56c64fdb2b3a
tree1a8b02dffbafec0c41bd1e070adca3f6a2778c70
parente6f9e7b9d7303c18444076c46a267ffea1848d5c
parent9e498bfb7644c3fc2fa349393460c12097fe4472
Bug 419: Hop by Hop headers MUST NOT be forwarded (attempt 2)

This attempt builds on Henriks re-work of the client-request to
server-request cloning done since the last attempt was made at closing
this bug.

Adds all RFC 2616 listed Hop-by-hop headers to the clone selection test
as 'ignore' cases unless otherwise handled already.

The test for whether they exist in Connection: is moved to the default
case as an inline. Which reduces the code a fair bit and prevents the
side case where a specially handled header gets ignored because the
client explicitly added it to Connection: when it did not have to.

This method sets up a background default of not passing the hop-by-hop
headers while allowing any code which explicitly sets or copies the
headers across to operate as before without interference.
src/HttpRequest.cc
src/HttpRequest.h
src/http.cc