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