From 4a90f21e42c60c34e47950ad387bb48573df753f Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Sun, 21 Jun 2015 16:52:17 +0200 Subject: [PATCH] Use hostname rather than host when appending a port manually. The host attribute returns the port as well as the hostname. --- tests/wpt/web-platform-tests/websockets/constructor/017.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/wpt/web-platform-tests/websockets/constructor/017.html b/tests/wpt/web-platform-tests/websockets/constructor/017.html index 2177ecacb97..69358ec65dc 100644 --- a/tests/wpt/web-platform-tests/websockets/constructor/017.html +++ b/tests/wpt/web-platform-tests/websockets/constructor/017.html @@ -13,6 +13,6 @@ var tests = [ ]; //Pass condition is to not throw for (var i = 0; i < tests.length; ++i) { - test(function(){new WebSocket(tests[i][0] + location.host + ':' + tests[i][1] + '/echo')}, tests[i][0]); + test(function(){new WebSocket(tests[i][0] + location.hostname + ':' + tests[i][1] + '/echo')}, tests[i][0]); }