From b635ee2d36f2ace7a75239de859da9fd777aa0cd Mon Sep 17 00:00:00 2001 From: Victor Homyakov Date: Tue, 6 Jan 2015 21:23:16 -0500 Subject: [PATCH] Ajax: Fix cross-domain detection test for non-default port Closes gh-1954 --- test/unit/ajax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/ajax.js b/test/unit/ajax.js index 7a5ab3445..35db61699 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -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 ), -- 2.39.5