X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;ds=inline;f=src%2Fajax.js;h=bfae7824478b2090dcf5bfc3065519379e498c8d;hb=9ad7c21e701f827e108de038ff704f1e9b7022da;hp=78d9b24f1565f8913c3e8ae8f6bbba9a71802a09;hpb=959c20f76866c17e12e0c0bd2b2a8753d618550b;p=jquery.git diff --git a/src/ajax.js b/src/ajax.js index 78d9b24..bfae782 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -629,9 +629,8 @@ jQuery.extend( jQuery.ajax, { try { // IE error sometimes returns 1223 when it should be 204 so treat it as success, see #1450 return !xhr.status && location.protocol === "file:" || - // Opera returns 0 when status is 304 - ( xhr.status >= 200 && xhr.status < 300 ) || - xhr.status === 304 || xhr.status === 1223 || xhr.status === 0; + xhr.status >= 200 && xhr.status < 300 || + xhr.status === 304 || xhr.status === 1223; } catch(e) {} return false; @@ -650,8 +649,7 @@ jQuery.extend( jQuery.ajax, { jQuery.ajax.etag[url] = etag; } - // Opera returns 0 when status is 304 - return xhr.status === 304 || xhr.status === 0; + return xhr.status === 304; }, httpData: function( xhr, type, s ) {