]> git.ipfire.org Git - thirdparty/squid.git/commit
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 1 Feb 2011 01:50:29 +0000 (18:50 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 1 Feb 2011 01:50:29 +0000 (18:50 -0700)
commit9dcab323871f931ddc1307166d313c33e5715c98
treecedd16314843c195cdf6f551c3fbe8616b9e1fe9
parentf742da03692ac372f63b86f6a7cff5330fa40798
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Simplify request parsing to not check request method when determining entities

Requests containing a request-entity or not is signalled entirely by
Content-Length/Transfer-Encoding regardless of method.

Also drops the requirement that PUT/POST requests must have a request-entity.
The RFC do not explicitly state this requirement even if the wording for those
methods do assume there is a enclosed request-entity.

The administrative "request_entities" config flag is kept for security
reasons, even if not really RFC compliant. (RFC meaning of request-entity
in GET/HEAD is just undefined or "ignored", not forbidden)
src/HttpRequest.cc
src/client_side.cc