mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
url: use blank credentials when using proxy w/o username and password
Fixes proxy regression brought in commit ad829b21ae
(7.71.0)
Fixed #5911
Closes #5914
This commit is contained in:
parent
6f42e3b169
commit
3532262edd
@ -2379,8 +2379,10 @@ static CURLcode parse_proxy(struct Curl_easy *data,
|
|||||||
static CURLcode parse_proxy_auth(struct Curl_easy *data,
|
static CURLcode parse_proxy_auth(struct Curl_easy *data,
|
||||||
struct connectdata *conn)
|
struct connectdata *conn)
|
||||||
{
|
{
|
||||||
char *proxyuser = data->set.str[STRING_PROXYUSERNAME];
|
const char *proxyuser = data->set.str[STRING_PROXYUSERNAME] ?
|
||||||
char *proxypasswd = data->set.str[STRING_PROXYPASSWORD];
|
data->set.str[STRING_PROXYUSERNAME] : "";
|
||||||
|
const char *proxypasswd = data->set.str[STRING_PROXYPASSWORD] ?
|
||||||
|
data->set.str[STRING_PROXYPASSWORD] : "";
|
||||||
CURLcode result = CURLE_OK;
|
CURLcode result = CURLE_OK;
|
||||||
|
|
||||||
if(proxyuser)
|
if(proxyuser)
|
||||||
|
Loading…
Reference in New Issue
Block a user