mirror of
https://github.com/curl/curl.git
synced 2026-08-26 17:03:32 +03:00
parent
86ea3abd41
commit
1495489c41
17 changed files with 62 additions and 67 deletions
|
|
@ -974,9 +974,8 @@ static CURLcode auth_basic(struct Curl_easy *data,
|
|||
*availp |= CURLAUTH_BASIC;
|
||||
authp->avail |= CURLAUTH_BASIC;
|
||||
if(authp->picked == CURLAUTH_BASIC) {
|
||||
/* We asked for Basic authentication but got a 40X back
|
||||
anyway, which basically means our name+password is not
|
||||
valid. */
|
||||
/* We asked for Basic authentication but got a 40X back anyway, which
|
||||
means our name+password is not valid. */
|
||||
authp->avail = CURLAUTH_NONE;
|
||||
infof(data, "Basic authentication problem, ignoring.");
|
||||
data->state.authproblem = TRUE;
|
||||
|
|
@ -993,8 +992,8 @@ static CURLcode auth_bearer(struct Curl_easy *data,
|
|||
*availp |= CURLAUTH_BEARER;
|
||||
authp->avail |= CURLAUTH_BEARER;
|
||||
if(authp->picked == CURLAUTH_BEARER) {
|
||||
/* We asked for Bearer authentication but got a 40X back
|
||||
anyway, which basically means our token is not valid. */
|
||||
/* We asked for Bearer authentication but got a 40X back anyway, which
|
||||
means our token is not valid. */
|
||||
authp->avail = CURLAUTH_NONE;
|
||||
infof(data, "Bearer authentication problem, ignoring.");
|
||||
data->state.authproblem = TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue