diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-09-19 09:10:05 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-09-19 09:10:05 +0200 |
commit | 7b44c73969fdd0c0047bf7f2aed45e078fa2152c (patch) | |
tree | e42e28a6d4e49f54866de07531aec3716f35f0e8 | |
parent | 2a2404153bb427a8c4b046a96389fc9862944aa3 (diff) | |
download | curl-7b44c73969fdd0c0047bf7f2aed45e078fa2152c.tar.gz |
http: fix Expression 'http->postdata' is always false
Reported-by: Valerii Zapodovnikov
Ref: #4374
-rw-r--r-- | lib/http.c | 3 |
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; |