1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-30 00:00:16 +01:00

http proxy: fix host

This commit is contained in:
Andy Green 2022-09-18 06:01:00 +01:00
parent 8ab44ae28b
commit af64c7fc4f

View file

@ -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] != '+' ||