diff --git a/src/ChangeLog b/src/ChangeLog index 566db745..73ae4ee9 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2013-10-30 Giuseppe Scrivano + + * http.c (skip_short_body): Remove assert which is always true. + Reported by: David Binderman + 2013-10-17 Andrea Urbani * ftp.c (getftp): force "LIST" or "LIST -a" 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)