From 213babc1af018b1abb20ef178c798118e2f02cae Mon Sep 17 00:00:00 2001 From: Andy Green Date: Fri, 19 Mar 2021 20:01:33 +0000 Subject: [PATCH] h2: dont try to get ahead of POST if its a cgi mount or proxied --- lib/roles/h2/ops-h2.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/roles/h2/ops-h2.c b/lib/roles/h2/ops-h2.c index f46cfcca0..cc442f8e4 100644 --- a/lib/roles/h2/ops-h2.c +++ b/lib/roles/h2/ops-h2.c @@ -809,6 +809,11 @@ lws_h2_bind_for_post_before_action(struct lws *wsi) const struct lws_protocols *pp; const char *name = hit->origin; + if (hit->origin_protocol == LWSMPRO_CGI || + hit->origin_protocol == LWSMPRO_HTTP || + hit->origin_protocol == LWSMPRO_HTTPS) + return 0; + if (hit->protocol) name = hit->protocol;