mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 07:39:50 -04:00
there cannot be chunked problem when no_body (HEAD) is true since without
body there is nothing chunked-encoded!
This commit is contained in:
parent
ae1d6f29d9
commit
41e6292e7b
@ -1387,7 +1387,8 @@ CURLcode Curl_readwrite(struct connectdata *conn,
|
|||||||
conn->size - k->bytecount);
|
conn->size - k->bytecount);
|
||||||
return CURLE_PARTIAL_FILE;
|
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)) {
|
(conn->proto.http->chunk.state != CHUNK_STOP)) {
|
||||||
/*
|
/*
|
||||||
* In chunked mode, return an error if the connection is closed prior to
|
* In chunked mode, return an error if the connection is closed prior to
|
||||||
|
Loading…
x
Reference in New Issue
Block a user