forked from github/cordova-android
Fix for CB-2284. 401s are appearing when we hit them
This commit is contained in:
parent
431ca99c23
commit
56cd24797e
@ -230,6 +230,10 @@ public class CordovaWebViewClient extends WebViewClient {
|
|||||||
AuthenticationToken token = this.getAuthenticationToken(host, realm);
|
AuthenticationToken token = this.getAuthenticationToken(host, realm);
|
||||||
if (token != null) {
|
if (token != null) {
|
||||||
handler.proceed(token.getUserName(), token.getPassword());
|
handler.proceed(token.getUserName(), token.getPassword());
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// Handle 401 like we'd normally do!
|
||||||
|
super.onReceivedHttpAuthRequest(view, handler, host, realm);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user