mirror of
https://github.com/curl/curl.git
synced 2025-04-12 16:20:35 +08:00
transfer: do not clear the credentials on redirect to absolute URL
Makes test 979 work. Regression shipped in 8.2.0 from commit dd4d1a26959f63a2c Fixes #11486 Reported-by: Cloudogu Siebels Closes #11492
This commit is contained in:
parent
db1203781c
commit
90bdd2533c
@ -1558,10 +1558,6 @@ CURLcode Curl_follow(struct Curl_easy *data,
|
||||
/* If this is not redirect due to a 401 or 407 response and an absolute
|
||||
URL: don't allow a custom port number */
|
||||
disallowport = TRUE;
|
||||
if(!data->set.allow_auth_to_other_hosts) {
|
||||
Curl_safefree(data->state.aptr.user);
|
||||
Curl_safefree(data->state.aptr.passwd);
|
||||
}
|
||||
}
|
||||
|
||||
DEBUGASSERT(data->state.uh);
|
||||
|
Loading…
x
Reference in New Issue
Block a user