summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-09-19 09:10:05 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-09-19 09:10:05 +0200
commit7b44c73969fdd0c0047bf7f2aed45e078fa2152c (patch)
treee42e28a6d4e49f54866de07531aec3716f35f0e8
parent2a2404153bb427a8c4b046a96389fc9862944aa3 (diff)
downloadcurl-7b44c73969fdd0c0047bf7f2aed45e078fa2152c.tar.gz
http: fix Expression 'http->postdata' is always false
Reported-by: Valerii Zapodovnikov Ref: #4374
-rw-r--r--lib/http.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/http.c b/lib/http.c
index eca142af4..de16f6e6b 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -3041,8 +3041,7 @@ CURLcode Curl_http(struct connectdata *conn, bool *done)
failf(data, "Failed sending HTTP request");
else
/* HTTP GET/HEAD download: */
- Curl_setup_transfer(data, FIRSTSOCKET, -1, TRUE,
- http->postdata?FIRSTSOCKET:-1);
+ Curl_setup_transfer(data, FIRSTSOCKET, -1, TRUE, -1);
}
if(result)
return result;