From cdc93acb2591533cfaa043c64555ae8b5723df46 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Mon, 1 Apr 2013 17:29:06 +0200 Subject: [PATCH] broadway: Use wss: on https: uris --- gdk/broadway/broadway.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/broadway/broadway.js b/gdk/broadway/broadway.js index 50a6b1662d..6f7a76536d 100644 --- a/gdk/broadway/broadway.js +++ b/gdk/broadway/broadway.js @@ -2675,7 +2675,7 @@ function connect() var params = query_string[1].split("&"); } - var loc = window.location.toString().replace("http:", "ws:"); + var loc = window.location.toString().replace("http:", "ws:").replace("https:", "wss:"); loc = loc.substr(0, loc.lastIndexOf('/')) + "/socket"; var supports_binary = newWS (loc + "-test").binaryType == "blob";