Skip to content

Commit f572900

Browse files
committed
fix behavior
1 parent 089f8e9 commit f572900

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

source/h1_stream.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,8 @@ static int s_stream_write_data(
441441
struct aws_http1_chunk_options chunk_opts = {
442442
.chunk_data = options->data,
443443
.chunk_data_size = (uint64_t)data_len,
444+
.on_complete = options->end_stream ? NULL : options->on_complete,
445+
.user_data = options->end_stream ? NULL : options->user_data,
444446
};
445447

446448
if (aws_http1_stream_write_chunk(stream_base, &chunk_opts)) {

0 commit comments

Comments
 (0)