From 41e6292e7be530c0a273de4121c48169996cb547 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 30 Apr 2005 23:07:38 +0000 Subject: there cannot be chunked problem when no_body (HEAD) is true since without body there is nothing chunked-encoded! --- lib/transfer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.3