1
0
Fork 0
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:
Andy Green 2021-11-17 14:48:59 +00:00
parent 121dd5e8ee
commit bc83a57207

View file

@ -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) {