Skip to content

Commit 83b038f

Browse files
victor-homyakovdmethvin
authored andcommitted
Ajax: Fix cross-domain detection test for non-default port
Closes jquerygh-1954
1 parent d30c482 commit 83b038f

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
@@ -321,7 +321,7 @@ module( "ajax", {
321321

322322
return [
323323
request(
324-
loc.protocol + "//" + loc.host + ":" + samePort,
324+
loc.protocol + "//" + loc.hostname + ":" + samePort,
325325
"Test matching ports are not detected as cross-domain",
326326
false
327327
),

0 commit comments

Comments
 (0)