arrfab / rpms / httpd

Forked from rpms/httpd 5 years ago
Clone

Blame SOURCES/httpd-2.4.6-r1594625.patch

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