We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 089f8e9 commit f572900Copy full SHA for f572900
1 file changed
source/h1_stream.c
@@ -441,6 +441,8 @@ static int s_stream_write_data(
441
struct aws_http1_chunk_options chunk_opts = {
442
.chunk_data = options->data,
443
.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,
446
};
447
448
if (aws_http1_stream_write_chunk(stream_base, &chunk_opts)) {
0 commit comments