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

This commit is contained in:
Vojta Jina 2011-09-06 23:33:29 +02:00
parent 05ad1ce90c
commit fc5cda2f72

View file

@ -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);