getting only a 100 Continue response and nothing else, when talking HTTP,

is now treated as an error by libcurl
This commit is contained in:
Daniel Stenberg
2004-04-07 14:27:54 +00:00
parent 348fe0e210
commit 72b1144b8c
9 changed files with 102 additions and 38 deletions

View File

@@ -1116,10 +1116,12 @@ CURLcode Curl_http_done(struct connectdata *conn)
conn->bytecount = http->readbytecount + http->writebytecount;
if(!conn->bits.retry &&
!(http->readbytecount + conn->headerbytecount)) {
((http->readbytecount +
conn->headerbytecount -
conn->deductheadercount)) <= 0) {
/* If this connection isn't simply closed to be retried, AND nothing was
read from the HTTP server, this can't be right so we return an error
here */
read from the HTTP server (that counts), this can't be right so we
return an error here */
failf(data, "Empty reply from server");
return CURLE_GOT_NOTHING;
}