]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
account for no content-length (<0)
authorwessels <>
Tue, 9 Jun 1998 05:05:42 +0000 (05:05 +0000)
committerwessels <>
Tue, 9 Jun 1998 05:05:42 +0000 (05:05 +0000)
test-suite/pconn-banger.c

index 22c650e4a39ce59af8c5a319f6a361a33e8bf034..278ebe53cd28c719962f508dbfa2086a0e50a1db 100644 (file)
@@ -432,7 +432,7 @@ handle_read(char *inbuf, int len)
                free(r);
                noutstanding--;
                r = Requests;
-           } else {
+           } else if (r->content_length > -1) {
                assert(r->bytes_read < r->content_length);
            }
            xmemmove(buf, buf + bytes_used, len);