commit e17a630b17bbd6c78fca30618a6958647749f190 parent 41bcb750d7ee0c01459be210886dad00a50e54d6 Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev> Date: Mon, 17 Aug 2026 12:22:41 +0200 HTTP/2: fixed sending responses Diffstat:
| M | src/mhd2/h2/h2_reply_funcs.c | | | 6 | ++++++ |
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/mhd2/h2/h2_reply_funcs.c b/src/mhd2/h2/h2_reply_funcs.c @@ -561,6 +561,12 @@ stream_content_send (struct mhd_H2Stream *s) (int_least32_t)(full_fr_size - mhd_H2_FR_HDR_BASE_SIZE); mhd_assert (0 <= s->state.send_window); + /* The data has been put to the frame, advance the reading position. + The 'end_stream' flag has been calculated before the advancing. */ + s->rpl.cntn_read_pos += payload_used; + if (dat->end_stream) + s->rpl.stage = mhd_H2_RPL_STAGE_END_STREAM; + return true; /* Success exit point */ }