aboutsummaryrefslogtreecommitdiff
path: root/lib/roles/h2/ops-h2.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/roles/h2/ops-h2.c')
-rw-r--r--lib/roles/h2/ops-h2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/roles/h2/ops-h2.c b/lib/roles/h2/ops-h2.c
index a7910811..989cb5b9 100644
--- a/lib/roles/h2/ops-h2.c
+++ b/lib/roles/h2/ops-h2.c
@@ -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) {