-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.3.0
-
Fix Version/s: None
-
Component/s: cordova-android
-
Labels:None
-
Environment:
Android ICS and JB
When making an ajax call and the server returns error with code 401 on Android ICS and JB and on others maybe, the error callback is not called unless the request times out.
Adding call to the base class here seems to fix the issue, but maybe there is a reason for not calling the base class.
if (token != null)
{ handler.proceed(token.getUserName(), token.getPassword()); }else
{ super.onReceivedHttpAuthRequest(view, handler, host, realm); }