]> source.dussan.org Git - jquery.git/commitdiff
Ajax: Fix cross-domain detection test for non-default port
authorVictor Homyakov <vkhomyackov@gmail.com>
Fri, 19 Dec 2014 12:23:02 +0000 (15:23 +0300)
committerDave Methvin <dave.methvin@gmail.com>
Wed, 7 Jan 2015 02:12:33 +0000 (21:12 -0500)
Closes gh-1954

test/unit/ajax.js

index 468d3845982bf15b62131a28e7814a6f5e27f208..b41654db91c160e4e87afc571cffd3ed9c5f9c57 100644 (file)
@@ -321,7 +321,7 @@ module( "ajax", {
 
                return [
                        request(
-                               loc.protocol + "//" + loc.host + ":" + samePort,
+                               loc.protocol + "//" + loc.hostname + ":" + samePort,
                                "Test matching ports are not detected as cross-domain",
                                false
                        ),