X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fhttp.c;fp=src%2Fhttp.c;h=dbfcdfbf407acfba5a5c7a32600e96e1d3ea2a66;hp=6b042a7eb8c1574daed5a2ac937fe46ff52a0cb8;hb=42c15e47b45a239ca8150222757288bca0a4d700;hpb=c3835a425a2b441dd741c7edc1684310141fb385 diff --git a/src/http.c b/src/http.c index 6b042a7e..dbfcdfbf 100644 --- a/src/http.c +++ b/src/http.c @@ -924,8 +924,6 @@ skip_short_body (int fd, wgint contlen, bool chunked) char dlbuf[SKIP_SIZE + 1]; dlbuf[SKIP_SIZE] = '\0'; /* so DEBUGP can safely print it */ - assert (contlen != -1 || contlen); - /* If the body is too large, it makes more sense to simply close the connection than to try to read the body. */ if (contlen > SKIP_THRESHOLD)