When a 401 response comes back to a request made with a token, if the WWW-Authenticate header does not contain the keywords invalid_token or expired_token, the connection will get dropped silently because - requestAccessAndRetryConnection: expects no tokens.
This fix adds an extra condition to ensure that it doesn't attempt to request access when the OAuth2Client's access token is present. The connection won't get dropped and the response handler will be called.
When a 401 response comes back to a request made with a token, if the
WWW-Authenticate
header does not contain the keywordsinvalid_token
orexpired_token
, the connection will get dropped silently because- requestAccessAndRetryConnection:
expects no tokens.This fix adds an extra condition to ensure that it doesn't attempt to request access when the OAuth2Client's access token is present. The connection won't get dropped and the response handler will be called.