[gtk+/gtk-3-8] broadway: Use wss: on https: uris



commit cdc93acb2591533cfaa043c64555ae8b5723df46
Author: Alexander Larsson <alexl redhat com>
Date:   Mon Apr 1 17:29:06 2013 +0200

    broadway: Use wss: on https: uris

 gdk/broadway/broadway.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/broadway/broadway.js b/gdk/broadway/broadway.js
index 50a6b16..6f7a765 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";


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]