diff --git a/src/ajax.js b/src/ajax.js index 6a757eb11..b39bc8ddb 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -293,7 +293,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