]> source.dussan.org Git - jquery.git/commitdiff
Adds missing crossDomain test.
authorjaubourg <j@ubourg.net>
Fri, 11 Feb 2011 06:39:46 +0000 (07:39 +0100)
committerjaubourg <j@ubourg.net>
Fri, 11 Feb 2011 06:39:46 +0000 (07:39 +0100)
src/ajax/xhr.js

index e21847aa8eaea7cee03fe14b2141076a4a5fca75..9c8790aba79bbc8b1bcabe95a11e87781aa384f7 100644 (file)
@@ -170,7 +170,7 @@ if ( jQuery.support.ajax ) {
                                                                                // If the request is local and we have data: assume a success
                                                                                // (success with no data won't get notified, that's the best we
                                                                                // can do given current implementations)
-                                                                               !status && s.isLocal ?
+                                                                               !status && s.isLocal && !s.crossDomain ?
                                                                                ( responses.text ? 200 : 404 ) :
                                                                                // IE - #1450: sometimes returns 1223 when it should be 204
                                                                                ( status === 1223 ? 204 : status );