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:
parent
e5b191be35
commit
46c925e3b7
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue