From ac5bb1c47ff86db309e600e8365ee3de9dee4fe6 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Wed, 17 Nov 2021 14:48:59 +0000 Subject: [PATCH] h2: post: do not try to bind origin for files --- lib/roles/h2/ops-h2.c | 3 +++ 1 file changed, 3 insertions(+) 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) {