]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
DW:
authorwessels <>
Wed, 1 Nov 2000 16:36:05 +0000 (16:36 +0000)
committerwessels <>
Wed, 1 Nov 2000 16:36:05 +0000 (16:36 +0000)
 - An FTP PUT with content-length: 0 causes an assertion because we never
   called pumpInit().

src/client_side.cc

index 20dc61834b8d0f465b3933bce8f0b2307a612a46..0a6d89e9aa5e5a10c5d06122b1cfbbc67ea8f0a5 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side.cc,v 1.509 2000/11/01 03:58:51 wessels Exp $
+ * $Id: client_side.cc,v 1.510 2000/11/01 09:36:05 wessels Exp $
  *
  * DEBUG: section 33    Client-side Routines
  * AUTHOR: Duane Wessels
@@ -2100,7 +2100,10 @@ clientProcessRequest(clientHttpRequest * http)
        }
        /* yes, continue */
        http->log_type = LOG_TCP_MISS;
-    } else if (r->content_length > 0) {
+    } else if (r->content_length >= 0) {
+       /*
+        * Need to initialize pump even if content-length: 0
+        */
        http->log_type = LOG_TCP_MISS;
        /* XXX oof, POST can be cached! */
        pumpInit(fd, r, http->uri);