aboutsummaryrefslogtreecommitdiff
path: root/lib/http.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-04-07 14:27:54 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-04-07 14:27:54 +0000
commit72b1144b8c1844ec81d5f5b73eb9b2a088377fec (patch)
treedea9c5bb99974d03b21c53b51266798d7cca6fe8 /lib/http.c
parent348fe0e210f7e593c80e956d0270c220705f132a (diff)
getting only a 100 Continue response and nothing else, when talking HTTP,
is now treated as an error by libcurl
Diffstat (limited to 'lib/http.c')
-rw-r--r--lib/http.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/http.c b/lib/http.c
index 3c2eceff3..32666d82b 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -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;
}