aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVojta Jina2011-09-06 23:33:29 +0200
committerVojta Jina2011-09-06 23:33:29 +0200
commitfc5cda2f7296de5cd52a44bd1ced31c46f8a3a34 (patch)
tree3f91ee3052063304c8015e6adb017a176a8bca60
parent05ad1ce90c4cb2200e23ed60d282c05a7ab14bd3 (diff)
downloadangular.js-fc5cda2f7296de5cd52a44bd1ced31c46f8a3a34.tar.bz2
fix($browser.xhr): not convert 0 status to 200
-rw-r--r--src/Browser.js2
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);