From a58f8f22d19ff88fedb324bdf97d22dd7c16131f Mon Sep 17 00:00:00 2001 From: Alex Sexton Date: Wed, 20 Oct 2010 21:12:47 -0700 Subject: [PATCH] Forces lower case comparison of protocol and host when determining whether the request is remote or local. Fixes #6908 --- src/ajax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ajax.js b/src/ajax.js index a40e223..d6c35d4 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -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 -- 1.7.10.4