diff options
| author | Vojta Jina | 2011-09-06 23:33:29 +0200 | 
|---|---|---|
| committer | Vojta Jina | 2011-09-06 23:33:29 +0200 | 
| commit | fc5cda2f7296de5cd52a44bd1ced31c46f8a3a34 (patch) | |
| tree | 3f91ee3052063304c8015e6adb017a176a8bca60 /src/Browser.js | |
| parent | 05ad1ce90c4cb2200e23ed60d282c05a7ab14bd3 (diff) | |
| download | angular.js-fc5cda2f7296de5cd52a44bd1ced31c46f8a3a34.tar.bz2 | |
fix($browser.xhr): not convert 0 status to 200
Diffstat (limited to 'src/Browser.js')
| -rw-r--r-- | src/Browser.js | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/Browser.js b/src/Browser.js index 65d27448..efae8b29 100644 --- a/src/Browser.js +++ b/src/Browser.js @@ -126,7 +126,7 @@ function Browser(window, document, body, XHR, $log) {        xhr.onreadystatechange = function() {          if (xhr.readyState == 4) {            // normalize IE bug (http://bugs.jquery.com/ticket/1450) -          var status = xhr.status == 1223 ? 204 : xhr.status || 200; +          var status = xhr.status == 1223 ? 204 : xhr.status;            completeOutstandingRequest(callback, status, xhr.responseText, function(header) {              header = lowercase(header); | 
