diff --git a/lib/roles/h2/ops-h2.c b/lib/roles/h2/ops-h2.c index e0ea4b446..fb0e2d85d 100644 --- a/lib/roles/h2/ops-h2.c +++ b/lib/roles/h2/ops-h2.c @@ -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);