Skip to content

Commit a58f8f2

Browse files
committed
Forces lower case comparison of protocol and host when determining whether the request is remote or local. Fixes #6908
1 parent 4fcfee4 commit a58f8f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ajax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ jQuery.extend({
287287

288288
// Matches an absolute URL, and saves the domain
289289
var parts = rurl.exec( s.url ),
290-
remote = parts && (parts[1] && parts[1] !== location.protocol || parts[2] !== location.host);
290+
remote = parts && (parts[1] && parts[1].toLowerCase() !== location.protocol || parts[2].toLowerCase() !== location.host);
291291

292292
// If we're requesting a remote document
293293
// and trying to load JSON or Script with a GET

0 commit comments

Comments
 (0)