diff --git a/lib/roles/h2/ops-h2.c b/lib/roles/h2/ops-h2.c index a79108117..989cb5b95 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) {