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

test/unit/ajax.js

index 7a5ab344534a4533974cc255dd34fcbe904ac612..35db616997a979ec6b0b461750eb79fda82f55c1 100644 (file)
@@ -316,7 +316,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
                        ),