From 56cd24797e2310dd9af4a865102f7c2a31297505 Mon Sep 17 00:00:00 2001 From: Joe Bowser Date: Fri, 25 Jan 2013 16:39:02 -0800 Subject: [PATCH] Fix for CB-2284. 401s are appearing when we hit them --- framework/src/org/apache/cordova/CordovaWebViewClient.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/framework/src/org/apache/cordova/CordovaWebViewClient.java b/framework/src/org/apache/cordova/CordovaWebViewClient.java index 7a7e6ed9..8b023ebd 100755 --- a/framework/src/org/apache/cordova/CordovaWebViewClient.java +++ b/framework/src/org/apache/cordova/CordovaWebViewClient.java @@ -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); } }