diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/transfer.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/transfer.c b/lib/transfer.c index 760884e9b..d9e37b01b 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -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 |