From af64c7fc4fba9f0e7c6ae2f1c3f73261552676b9 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Sun, 18 Sep 2022 06:01:00 +0100 Subject: [PATCH] http proxy: fix host --- lib/roles/http/server/server.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/roles/http/server/server.c b/lib/roles/http/server/server.c index 3066172d8..96b0b0189 100644 --- a/lib/roles/http/server/server.c +++ b/lib/roles/http/server/server.c @@ -1371,6 +1371,7 @@ lws_http_proxy_start(struct lws *wsi, const struct lws_http_mount *hit, * directly, otherwise we must convert h2 :authority to h1 * host */ +#if 0 i.host = NULL; #if defined(LWS_ROLE_H2) n = lws_hdr_total_length(wsi, WSI_TOKEN_HTTP_COLON_AUTHORITY); @@ -1383,6 +1384,8 @@ lws_http_proxy_start(struct lws *wsi, const struct lws_http_mount *hit, if (n > 0) i.host = lws_hdr_simple_ptr(wsi, WSI_TOKEN_HOST); } +#endif + i.host = i.address; #if 0 if (i.address[0] != '+' ||