From: Daniel Stenberg Date: Sat, 30 Apr 2005 23:07:38 +0000 (+0000) Subject: there cannot be chunked problem when no_body (HEAD) is true since without X-Git-Tag: curl-7_14_0~86 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=41e6292e7be530c0a273de4121c48169996cb547;p=curl there cannot be chunked problem when no_body (HEAD) is true since without body there is nothing chunked-encoded! --- diff --git a/lib/transfer.c b/lib/transfer.c index bb93950cd..305b0768b 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -1387,7 +1387,8 @@ CURLcode Curl_readwrite(struct connectdata *conn, conn->size - k->bytecount); return CURLE_PARTIAL_FILE; } - else if(conn->bits.chunk && + else if(!(conn->bits.no_body) && + conn->bits.chunk && (conn->proto.http->chunk.state != CHUNK_STOP)) { /* * In chunked mode, return an error if the connection is closed prior to