From 83b038fc81ec12e29dba92ad022e1d5fcf4980bc Mon Sep 17 00:00:00 2001 From: Victor Homyakov Date: Fri, 19 Dec 2014 15:23:02 +0300 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 468d384598..b41654db91 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -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 ),