Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
fix($browser.xhr): not convert 0 status to 200
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtajina committed Sep 5, 2011
1 parent 7f0b97e commit b0eb831
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
};
Expand Down

0 comments on commit b0eb831

Please sign in to comment.