mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-18 23:50:23 +00:00
fix($browser.xhr): not convert 0 status to 200
This commit is contained in:
parent
7f0b97e02c
commit
b0eb831bce
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue