]> git.ipfire.org Git - thirdparty/squid.git/commit - src/HttpHeader.cc
Bug #1305: Double content-length often harmless
authorserassio <>
Sun, 29 May 2005 02:01:06 +0000 (02:01 +0000)
committerserassio <>
Sun, 29 May 2005 02:01:06 +0000 (02:01 +0000)
commit9331e4b4fef8e302398770b7a39490139b62274e
tree6ad7f8eaa94cc5b3a09c2d2f1f3bbd4a4ecafe71
parent3b6888743c44cb1703273e1a66ed84d6cd0797e8
Bug #1305: Double content-length often harmless

There is quite many web servers out there with broken banner engines
forgetting to delete the original content-length after adding the
banner. Currently these are (rightfully) rejected by Squid.

Instead of rejecting we could select the biggest content-length header
found and remove the other. This should fix up these replies while not
allowing for attacks.

Forward port of 2.5 patch.
src/HttpHeader.cc