diff options
-rw-r--r-- | CHANGES | 3 | ||||
-rw-r--r-- | modules/proxy/mod_proxy_wstunnel.c | 5 |
2 files changed, 7 insertions, 1 deletions
@@ -1,6 +1,9 @@ -*- coding: utf-8 -*- Changes with Apache 2.5.1 + *) mod_proxy_wstunnel: Fix websocket proxy over UDS. + PR 62932 <pavel dcmsys.com> + *) mod_negociation: LanguagePriority should be case-insensitive in order to match AddLanguage behavior. PR 39730 [Christophe Jaillet] diff --git a/modules/proxy/mod_proxy_wstunnel.c b/modules/proxy/mod_proxy_wstunnel.c index dcde71b0d9..064cccd4f8 100644 --- a/modules/proxy/mod_proxy_wstunnel.c +++ b/modules/proxy/mod_proxy_wstunnel.c @@ -279,7 +279,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 */ |