aboutsummaryrefslogtreecommitdiff
path: root/lib/http.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-09-13 12:40:36 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-09-13 12:40:36 +0000
commitc19844a0a3d7f7d1c7351de65605d13d422f2600 (patch)
tree49ca68168029afead6ccd5e6f8c7db0ea39d5e7e /lib/http.c
parent22cf05519aa09dce9f17bd5c78d34c0c19d03c65 (diff)
better deal with HTTP(S) servers that respond with no headers at all, test
case 306 added to verify that we do right
Diffstat (limited to 'lib/http.c')
-rw-r--r--lib/http.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/http.c b/lib/http.c
index 6a71e47b1..177d61100 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -965,7 +965,8 @@ CURLcode Curl_http(struct connectdata *conn)
failf(data, "Failed sending HTTP POST request");
else
result =
- Curl_Transfer(conn, conn->firstsocket, -1, TRUE, bytecount,
+ Curl_Transfer(conn, conn->firstsocket, -1, TRUE,
+ &http->readbytecount,
data->set.postfields?-1:conn->firstsocket,
data->set.postfields?NULL:&http->writebytecount);
break;
@@ -981,7 +982,8 @@ CURLcode Curl_http(struct connectdata *conn)
failf(data, "Failed sending HTTP request");
else
/* HTTP GET/HEAD download: */
- result = Curl_Transfer(conn, conn->firstsocket, -1, TRUE, bytecount,
+ result = Curl_Transfer(conn, conn->firstsocket, -1, TRUE,
+ &http->readbytecount,
-1, NULL); /* nothing to upload */
}
if(result)