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:
parent
51790705a0
commit
50e1f1ed13
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue