fix($browser.xhr): not convert 0 status to 200

This commit is contained in:
Vojta Jina 2011-08-08 20:51:57 +02:00
parent 7f0b97e02c
commit b0eb831bce

View file

@ -122,7 +122,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);
}
};