Skip to content

Commit

Permalink
http_client: fix muti part http2 request not working
Browse files Browse the repository at this point in the history
When the request body is quite big and it's split but only the first part is send multiple time instead of sending all parts.
  • Loading branch information
flobz committed Jan 10, 2025
1 parent 14ca011 commit 9110acb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/flb_http_client_http2.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,8 @@ static ssize_t http2_data_source_read_callback(nghttp2_session *session,
}
else {
if (content_length > 0) {
memcpy(buf, stream->request.body, content_length);
memcpy(buf,
&stream->request.body[body_offset], content_length);

stream->request.body_read_offset += content_length;
}
Expand Down

0 comments on commit 9110acb

Please sign in to comment.