]> git.ipfire.org Git - thirdparty/squid.git/commit
Simplified Http::Message::parse() (#814)
authorJoshua Rogers <MegaManSec@users.noreply.github.com>
Mon, 17 May 2021 03:43:48 +0000 (03:43 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Mon, 17 May 2021 03:43:50 +0000 (03:43 +0000)
commit7d59dbc9ff2ef8f5645fc18a184e5f471a91f05b
treeac8f0057f5793221b2364372f198bd6ea05b3d0b
parent1496bd71299d507aae825f9f6636056189cbac17
Simplified Http::Message::parse() (#814)

size_t hdr_len cannot be negative, and sanityCheckStartLine() already
rejects zero values. We now use (and clearly document) the latter fact.

Also replaced a level-1 warning about "Too large" headers with a level-3
debugging message because huge headers is not a Squid problem, and the
problem should already be visible in access.logs records.
src/HttpReply.h
src/http/Message.cc
src/http/Message.h