]> source.dussan.org Git - jquery.git/commitdiff
Forces lower case comparison of protocol and host when determining whether the reques... 62/head
authorAlex Sexton <AlexSexton@gmail.com>
Thu, 21 Oct 2010 04:12:47 +0000 (21:12 -0700)
committerAlex Sexton <AlexSexton@gmail.com>
Thu, 21 Oct 2010 04:12:47 +0000 (21:12 -0700)
src/ajax.js

index a40e223e76dd599790c08e18c086a11feb268922..d6c35d42364de03a3493d08961805db6a793c9fc 100644 (file)
@@ -287,7 +287,7 @@ jQuery.extend({
 
                // Matches an absolute URL, and saves the domain
                var parts = rurl.exec( s.url ),
-                       remote = parts && (parts[1] && parts[1] !== location.protocol || parts[2] !== location.host);
+                       remote = parts && (parts[1] && parts[1].toLowerCase() !== location.protocol || parts[2].toLowerCase() !== location.host);
 
                // If we're requesting a remote document
                // and trying to load JSON or Script with a GET