1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +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 51790705a0
commit 50e1f1ed13

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;