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

h2: dont try to get ahead of POST if its a cgi mount or proxied

This commit is contained in:
Andy Green 2021-03-19 20:01:33 +00:00
parent f72acc9e07
commit 213babc1af

View file

@ -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;