mirror of
https://github.com/curl/curl.git
synced 2026-07-25 06:27:16 +03:00
Tobias Rundstrom reported a problem they experienced with xmms2 and recent
libcurls, which turned out to be the 25-nov-2006 change which treats HTTP responses without Content-Length or chunked encoding as without bodies. We now added the conditional that the above mentioned response is only without body if the response is HTTP 1.1.
This commit is contained in:
parent
1afb67e31b
commit
acc4868b78
3 changed files with 12 additions and 3 deletions
|
|
@ -574,8 +574,9 @@ CURLcode Curl_readwrite(struct connectdata *conn,
|
|||
else {
|
||||
k->header = FALSE; /* no more header to parse! */
|
||||
|
||||
if((k->size == -1) && !conn->bits.chunk && !conn->bits.close)
|
||||
/* When connection is not to get closed, but no
|
||||
if((k->size == -1) && !conn->bits.chunk && !conn->bits.close &&
|
||||
(k->httpversion >= 11) )
|
||||
/* On HTTP 1.1, when connection is not to get closed, but no
|
||||
Content-Length nor Content-Encoding chunked have been
|
||||
received, there is no body in this response. We don't set
|
||||
stop_reading TRUE since that would also prevent necessary
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue