diff options
author | Alex Sexton <AlexSexton@gmail.com> | 2010-10-20 21:12:47 -0700 |
---|---|---|
committer | Alex Sexton <AlexSexton@gmail.com> | 2010-10-20 21:12:47 -0700 |
commit | a58f8f22d19ff88fedb324bdf97d22dd7c16131f (patch) | |
tree | 1fdc7f61f89cbc293953c6e69361ab48380134fa /src/ajax.js | |
parent | 4fcfee4369d184d26ef819c34412fb8d9b09962c (diff) | |
download | jquery-a58f8f22d19ff88fedb324bdf97d22dd7c16131f.tar.gz jquery-a58f8f22d19ff88fedb324bdf97d22dd7c16131f.zip |
Forces lower case comparison of protocol and host when determining whether the request is remote or local. Fixes #6908
Diffstat (limited to 'src/ajax.js')
-rw-r--r-- | src/ajax.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ajax.js b/src/ajax.js index a40e223e7..d6c35d423 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 |