diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-04-30 23:07:38 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-04-30 23:07:38 +0000 |
commit | 41e6292e7be530c0a273de4121c48169996cb547 (patch) | |
tree | a204115e20127a8c3460f81725d8d82b2b6f6f82 | |
parent | ae1d6f29d93ec987d829dd407cb8958c341edfe0 (diff) |
there cannot be chunked problem when no_body (HEAD) is true since without
body there is nothing chunked-encoded!
-rw-r--r-- | lib/transfer.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 |