1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

http: bind PUT and friends to mounts

This commit is contained in:
Andy Green 2020-10-10 06:52:40 +01:00
parent eddecea3c8
commit 657cadf7c6

View file

@ -804,6 +804,9 @@ lws_find_mount(struct lws *wsi, const char *uri_ptr, int uri_len)
((hm->origin_protocol == LWSMPRO_CGI ||
lws_hdr_total_length(wsi, WSI_TOKEN_GET_URI) ||
lws_hdr_total_length(wsi, WSI_TOKEN_POST_URI) ||
lws_hdr_total_length(wsi, WSI_TOKEN_PUT_URI) ||
lws_hdr_total_length(wsi, WSI_TOKEN_PATCH_URI) ||
lws_hdr_total_length(wsi, WSI_TOKEN_DELETE_URI) ||
lws_hdr_total_length(wsi, WSI_TOKEN_HEAD_URI) ||
#if defined(LWS_ROLE_H2)
(wsi->mux_substream &&