File 12497.patch of Package squid
---------------------
PatchSet 12497
Date: 2009/06/29 07:24:08
Author: hno
Branch: SQUID_2_7
Tag: (none)
Log:
MFC: Accept PUT/POST requests without an entity-body
Techniclly PUT/POST requests withtout an entity-body is allowed by HTTP,
so there is no reason for us to complain aout them even if it doesn't make
much sense in terms of the intended meaning of PUT/POST.
Patch tracking note: In 2.HEAD this change is contained withn the unknown
request methods patch.
Members:
src/client_side.c:1.754.2.25->1.754.2.26
Index: squid/src/client_side.c
===================================================================
RCS file: /cvsroot/squid/squid/src/client_side.c,v
retrieving revision 1.754.2.25
retrieving revision 1.754.2.26
diff -u -r1.754.2.25 -r1.754.2.26
--- squid/src/client_side.c 25 Jun 2009 22:45:10 -0000 1.754.2.25
+++ squid/src/client_side.c 29 Jun 2009 07:24:08 -0000 1.754.2.26
@@ -1,6 +1,6 @@
/*
- * $Id: client_side.c,v 1.754.2.25 2009/06/25 22:45:10 hno Exp $
+ * $Id: client_side.c,v 1.754.2.26 2009/06/29 07:24:08 hno Exp $
*
* DEBUG: section 33 Client-side Routines
* AUTHOR: Duane Wessels
@@ -1522,10 +1522,6 @@
clientCheckContentLength(request_t * r)
{
switch (r->method) {
- case METHOD_PUT:
- case METHOD_POST:
- /* PUT/POST requires a request entity */
- return (r->content_length >= 0);
case METHOD_GET:
case METHOD_HEAD:
/* We do not want to see a request entity on GET/HEAD requests */