Fix for CB-2284. 401s are appearing when we hit them

This commit is contained in:
Joe Bowser 2013-01-25 16:39:02 -08:00
parent 431ca99c23
commit 56cd24797e

View File

@ -230,6 +230,10 @@ public class CordovaWebViewClient extends WebViewClient {
AuthenticationToken token = this.getAuthenticationToken(host, realm);
if (token != null) {
handler.proceed(token.getUserName(), token.getPassword());
}
else {
// Handle 401 like we'd normally do!
super.onReceivedHttpAuthRequest(view, handler, host, realm);
}
}