]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
incorrect assertions with new body-copying code. CONNECT requests
authorwessels <>
Wed, 10 Jun 1998 12:00:22 +0000 (12:00 +0000)
committerwessels <>
Wed, 10 Jun 1998 12:00:22 +0000 (12:00 +0000)
have no content-length, but are NON-GET, so the assertion failed.

src/client_side.cc

index 69ee46356562bb95fcc49573d0b7f06a2dfa1580..6c1510d757d8bf4dc01c339676b772b126433949 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side.cc,v 1.335 1998/06/10 05:48:48 wessels Exp $
+ * $Id: client_side.cc,v 1.336 1998/06/10 06:00:22 wessels Exp $
  *
  * DEBUG: section 33    Client-side Routines
  * AUTHOR: Duane Wessels
@@ -2460,8 +2460,7 @@ clientReadRequest(int fd, void *data)
            if (request->method != METHOD_GET) {
                int cont_len = httpHeaderGetInt(&request->header, HDR_CONTENT_LENGTH);
                int copy_len = XMIN(cont_len, conn->in.offset);
-               assert(cont_len > -1);
-               if (conn->in.offset && copy_len > 0) {
+               if (copy_len > 0) {
                    assert(conn->in.offset >= copy_len);
                    request->body_sz = copy_len;
                    request->body = xmalloc(request->body_sz);