We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28d3999 commit cb6cd15Copy full SHA for cb6cd15
1 file changed
source/h1_stream.c
@@ -374,8 +374,11 @@ static int s_stream_write_data(
374
AWS_PRECONDITION(options);
375
struct aws_h1_stream *stream = AWS_CONTAINER_OF(stream_base, struct aws_h1_stream, base);
376
377
- /* NULL data without end_stream is a no-op */
+ /* NULL data without end_stream is a no-op, but still fire the callback */
378
if (!options->data && !options->end_stream) {
379
+ if (options->on_complete) {
380
+ options->on_complete(stream_base, AWS_ERROR_SUCCESS, options->user_data);
381
+ }
382
return AWS_OP_SUCCESS;
383
}
384
0 commit comments