We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dc0f8f commit 29a85a7Copy full SHA for 29a85a7
lib/Test/Nginx/HTTP3.pm
@@ -514,6 +514,18 @@ sub read {
514
goto frames;
515
}
516
517
+ if (!length($buf) && $eof) {
518
+ # emulate empty DATA frame
519
+ $length = 0;
520
+ $frame->{length} = $length;
521
+ $frame->{type} = 'DATA';
522
+ $frame->{data} = '';
523
+ $frame->{flags} = $eof;
524
+ $frame->{sid} = $stream;
525
+ $frame->{uni} = $uni if defined $uni;
526
+ goto push_me;
527
+ }
528
+
529
if (length($self->{frames_incomplete}[$stream]{buf})) {
530
$buf = $self->{frames_incomplete}[$stream]{buf} . $buf;
531
0 commit comments