mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
h2: post: do not try to bind origin for files
This commit is contained in:
parent
d080ab3585
commit
ac5bb1c47f
1 changed files with 3 additions and 0 deletions
|
@ -837,6 +837,9 @@ lws_h2_bind_for_post_before_action(struct lws *wsi)
|
|||
|
||||
if (hit->protocol)
|
||||
name = hit->protocol;
|
||||
else
|
||||
if (hit->origin_protocol == LWSMPRO_FILE)
|
||||
return 0;
|
||||
|
||||
pp = lws_vhost_name_to_protocol(wsi->a.vhost, name);
|
||||
if (!pp) {
|
||||
|
|
Loading…
Add table
Reference in a new issue