[gtk+] broadway: Use wss: on https: uris



commit 40c3062d330e5082d7297d411d81e9cff8b6848d
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]