]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge r1851093 from trunk
authorChristophe Jaillet <jailletc36@apache.org>
Fri, 15 Feb 2019 15:57:51 +0000 (15:57 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Fri, 15 Feb 2019 15:57:51 +0000 (15:57 +0000)
   * mod_proxy_wstunnel: Fix websocket proxy over UDS.

PR: 62932
Submitted by: <pavel dcmsys.com>
Reviewed by: jailletc36 (by inspection), jim, ylavic
Backported by: jailletc36

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1853653 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/proxy/mod_proxy_wstunnel.c

diff --git a/CHANGES b/CHANGES
index cd19f087ed43d81b45f602003e9ea868ddc2360a..08fc740db301398ceb42ab534b68bd2c191b7f68 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.4.39
 
+  *) mod_proxy_wstunnel: Fix websocket proxy over UDS.
+     PR 62932 <pavel dcmsys.com>
+
   *) mod_ssl: Don't unset FIPS mode on restart unless it's forced by
      configuration (SSLFIPS on) and not active by default in OpenSSL.
      PR 63136. [Yann Ylavic]
index 9dda010dbcbe91af6e687df9c30a1abe5e58e665..1056d5cb726615fee6958bd32a4798f783259673 100644 (file)
@@ -77,7 +77,10 @@ static int proxy_wstunnel_canon(request_rec *r, char *url)
     if (path == NULL)
         return HTTP_BAD_REQUEST;
 
-    apr_snprintf(sport, sizeof(sport), ":%d", port);
+    if (port != def_port)
+        apr_snprintf(sport, sizeof(sport), ":%d", port);
+    else
+        sport[0] = '\0';
 
     if (ap_strchr_c(host, ':')) {
         /* if literal IPv6 address */