41a6c3
Index: modules/proxy/mod_proxy_wstunnel.c
41a6c3
===================================================================
41a6c3
--- a/modules/proxy/mod_proxy_wstunnel.c	(revision 1593857)
41a6c3
+++ b/modules/proxy/mod_proxy_wstunnel.c	(revision 1594625)
41a6c3
@@ -477,9 +477,11 @@
41a6c3
     conn_rec *c = r->connection;
41a6c3
     apr_pool_t *p = r->pool;
41a6c3
     apr_uri_t *uri;
41a6c3
+    int is_ssl = 0;
41a6c3
 
41a6c3
     if (strncasecmp(url, "wss:", 4) == 0) {
41a6c3
         scheme = "WSS";
41a6c3
+        is_ssl = 1;
41a6c3
     }
41a6c3
     else if (strncasecmp(url, "ws:", 3) == 0) {
41a6c3
         scheme = "WS";
41a6c3
@@ -503,7 +505,7 @@
41a6c3
         return status;
41a6c3
     }
41a6c3
 
41a6c3
-    backend->is_ssl = 0;
41a6c3
+    backend->is_ssl = is_ssl;
41a6c3
     backend->close = 0;
41a6c3
 
41a6c3
     retry = 0;