From: wessels <> Date: Wed, 1 Nov 2000 16:36:05 +0000 (+0000) Subject: DW: X-Git-Tag: SQUID_3_0_PRE1~1795 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9816d01cec2630ced516e000f799292b8c942897;p=thirdparty%2Fsquid.git DW: - An FTP PUT with content-length: 0 causes an assertion because we never called pumpInit(). --- diff --git a/src/client_side.cc b/src/client_side.cc index 20dc61834b..0a6d89e9aa 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -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);