diff options
Diffstat (limited to 'src/ng')
| -rw-r--r-- | src/ng/httpBackend.js | 8 | 
1 files changed, 5 insertions, 3 deletions
| diff --git a/src/ng/httpBackend.js b/src/ng/httpBackend.js index ee2a37fe..28107966 100644 --- a/src/ng/httpBackend.js +++ b/src/ng/httpBackend.js @@ -144,9 +144,11 @@ function createHttpBackend($browser, createXhr, $browserDefer, callbacks, rawDoc        jsonpDone = xhr = null;        // fix status code when it is 0 (0 status is undocumented). -      // Occurs when accessing file resources. -      // On Android 4.1 stock browser it occurs while retrieving files from application cache. -      status = (status === 0) ? (response ? 200 : 404) : status; +      // Occurs when accessing file resources or on Android 4.1 stock browser +      // while retrieving files from application cache. +      if (status === 0) { +        status = response ? 200 : urlResolve(url).protocol == 'file' ? 404 : 0; +      }        // normalize IE bug (http://bugs.jquery.com/ticket/1450)        status = status == 1223 ? 204 : status; | 
