altarch-user / rpms / httpd

Forked from rpms/httpd 2 years ago
Clone

Blame SOURCES/httpd-2.4.6-r1594625.patch

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