Skip to content
Permalink
Browse files

Forces lower case comparison of protocol and host when determining wh…

…ether the request is remote or local. Fixes #6908
  • Loading branch information...
SlexAxton committed Oct 21, 2010
1 parent 4fcfee4 commit a58f8f22d19ff88fedb324bdf97d22dd7c16131f
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit a58f8f2

Please sign in to comment.
You can’t perform that action at this time.