mirror of
https://github.com/moparisthebest/curl
synced 2024-11-11 03:55:03 -05:00
http: fix Expression 'http->postdata' is always false
Fixes warning detected by PVS-Studio Fixes #4374 Reported-by: Valerii Zapodovnikov
This commit is contained in:
parent
0d59addff6
commit
69ea985d4c
@ -3041,8 +3041,7 @@ CURLcode Curl_http(struct connectdata *conn, bool *done)
|
|||||||
failf(data, "Failed sending HTTP request");
|
failf(data, "Failed sending HTTP request");
|
||||||
else
|
else
|
||||||
/* HTTP GET/HEAD download: */
|
/* HTTP GET/HEAD download: */
|
||||||
Curl_setup_transfer(data, FIRSTSOCKET, -1, TRUE,
|
Curl_setup_transfer(data, FIRSTSOCKET, -1, TRUE, -1);
|
||||||
http->postdata?FIRSTSOCKET:-1);
|
|
||||||
}
|
}
|
||||||
if(result)
|
if(result)
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
Reference in New Issue
Block a user