]> granicus.if.org Git - curl/commitdiff
there cannot be chunked problem when no_body (HEAD) is true since without
authorDaniel Stenberg <daniel@haxx.se>
Sat, 30 Apr 2005 23:07:38 +0000 (23:07 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 30 Apr 2005 23:07:38 +0000 (23:07 +0000)
body there is nothing chunked-encoded!

lib/transfer.c

index bb93950cd8d0cb4d1bd8da0ade7057f2b6e615bb..305b0768b7ea5b54260042270edfd0a1c657d83e 100644 (file)
@@ -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