mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-14 22:39:32 +08:00
fix($browser.xhr): not convert 0 status to 200
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user