diff options
| author | Vojta Jina | 2011-05-31 10:23:30 +0200 | 
|---|---|---|
| committer | Vojta Jina | 2011-05-31 10:23:30 +0200 | 
| commit | b2f5299e0e3d6e4892b7fcc37686012147bf0afa (patch) | |
| tree | 91de2744a4898517fb8e3abe9654261f16dadfa3 /src/Browser.js | |
| parent | 805e083c243655bfaed3c5431dc0f402cb27fcb4 (diff) | |
| download | angular.js-b2f5299e0e3d6e4892b7fcc37686012147bf0afa.tar.bz2 | |
Normalize IE XHR bug (status code 1223 to 204)
See http://bugs.jquery.com/ticket/1450
Diffstat (limited to 'src/Browser.js')
| -rw-r--r-- | src/Browser.js | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/src/Browser.js b/src/Browser.js index b10c43cf..31f2c7f3 100644 --- a/src/Browser.js +++ b/src/Browser.js @@ -113,7 +113,9 @@ function Browser(window, document, body, XHR, $log) {        });        xhr.onreadystatechange = function() {          if (xhr.readyState == 4) { -          completeOutstandingRequest(callback, xhr.status || 200, xhr.responseText); +          // normalize IE bug (http://bugs.jquery.com/ticket/1450) +          var status = xhr.status == 1223 ? 204 : xhr.status || 200; +          completeOutstandingRequest(callback, status, xhr.responseText);          }        };        xhr.send(post || ''); | 
