Description: mod_proxy_wstunnel: Fix the use of SSL connections with the "wss:" scheme.  PR55320.
Origin: upstream, https://svn.apache.org/viewvc?view=revision&revision=1594625
Bug: https://bz.apache.org/bugzilla/show_bug.cgi?id=55320
Bug-Ubuntu: https://bugs.launchpad.net/bugs/1445914
Last-Update: 2015-11-15
--- ./modules/proxy/mod_proxy_wstunnel.c	2013-06-13 10:09:31.000000000 -0500
+++ ./modules/proxy/mod_proxy_wstunnel.c	2013-11-11 15:58:51.000000000 -0600
@@ -315,9 +315,11 @@ 
     conn_rec *c = r->connection;
     apr_pool_t *p = r->pool;
     apr_uri_t *uri;
+    int is_ssl = 0;
 
     if (strncasecmp(url, "wss:", 4) == 0) {
         scheme = "WSS";
+        is_ssl = 1;
     }
     else if (strncasecmp(url, "ws:", 3) == 0) {
         scheme = "WS";
@@ -341,7 +343,7 @@ 
         return status;
     }
 
-    backend->is_ssl = 0;
+    backend->is_ssl = is_ssl;
     backend->close = 0;
 
     retry = 0;
