aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-04-30 23:07:38 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-04-30 23:07:38 +0000
commit41e6292e7be530c0a273de4121c48169996cb547 (patch)
treea204115e20127a8c3460f81725d8d82b2b6f6f82 /lib
parentae1d6f29d93ec987d829dd407cb8958c341edfe0 (diff)
there cannot be chunked problem when no_body (HEAD) is true since without
body there is nothing chunked-encoded!
Diffstat (limited to 'lib')
-rw-r--r--lib/transfer.c3
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