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

h2: post: adapt in on _HTTP to be after mountpoint

This commit is contained in:
Andy Green 2021-01-18 16:04:08 +00:00
parent e5b191be35
commit 46c925e3b7

View file

@ -824,9 +824,10 @@ lws_h2_bind_for_post_before_action(struct lws *wsi)
}
if (lws_http_get_uri_and_method(wsi, &uri_ptr, &uri_len) >= 0)
wsi->a.protocol->callback(wsi, LWS_CALLBACK_HTTP,
wsi->user_space, uri_ptr, (size_t)uri_len);
wsi->user_space, hit ? uri_ptr + hit->mountpoint_len : uri_ptr,
(size_t)(hit ? uri_len - hit->mountpoint_len : uri_len));
lwsl_notice("%s: setting LRS_BODY from 0x%x (%s)\n", __func__,
lwsl_info("%s: setting LRS_BODY from 0x%x (%s)\n", __func__,
(int)wsi->wsistate, wsi->a.protocol->name);
lwsi_set_state(wsi, LRS_BODY);