mirror of
https://github.com/curl/curl.git
synced 2026-08-11 05:40:53 +03: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
1 changed files with 4 additions and 2 deletions
|
|
@ -2379,8 +2379,10 @@ static CURLcode parse_proxy(struct Curl_easy *data,
|
|||
static CURLcode parse_proxy_auth(struct Curl_easy *data,
|
||||
struct connectdata *conn)
|
||||
{
|
||||
char *proxyuser = data->set.str[STRING_PROXYUSERNAME];
|
||||
char *proxypasswd = data->set.str[STRING_PROXYPASSWORD];
|
||||
const char *proxyuser = data->set.str[STRING_PROXYUSERNAME] ?
|
||||
data->set.str[STRING_PROXYUSERNAME] : "";
|
||||
const char *proxypasswd = data->set.str[STRING_PROXYPASSWORD] ?
|
||||
data->set.str[STRING_PROXYPASSWORD] : "";
|
||||
CURLcode result = CURLE_OK;
|
||||
|
||||
if(proxyuser)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue