Skip to content

Commit b635ee2

Browse files
victor-homyakovdmethvin
authored andcommitted
Ajax: Fix cross-domain detection test for non-default port
Closes gh-1954
1 parent 598946d commit b635ee2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unit/ajax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ module( "ajax", {
316316

317317
return [
318318
request(
319-
loc.protocol + "//" + loc.host + ":" + samePort,
319+
loc.protocol + "//" + loc.hostname + ":" + samePort,
320320
"Test matching ports are not detected as cross-domain",
321321
false
322322
),

0 commit comments

Comments
 (0)