mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
http-proxy: when not doing CONNECT, that phase is done immediately
`conn->connect_state` is NULL when doing a regular non-CONNECT request over the proxy and should therefor be considered complete at once. Fixes #1853 Closes #1862 Reported-by: Lawrence Wagerfield
This commit is contained in:
parent
f4a623825b
commit
9ef50ee0a4
@ -137,7 +137,7 @@ CURLcode Curl_proxy_connect(struct connectdata *conn, int sockindex)
|
||||
|
||||
bool Curl_connect_complete(struct connectdata *conn)
|
||||
{
|
||||
return conn->connect_state &&
|
||||
return !conn->connect_state ||
|
||||
(conn->connect_state->tunnel_state == TUNNEL_COMPLETE);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user