# HG changeset patch # User Sergey Kandaurov # Date 1521131512 -10800 # Node ID 28e5f1fa80e11c853c99fc7561c9342304aee4c6 # Parent 84a661563eaee244ecee7463fa2f40e9b2b52beb Tests: do not set undefined flag 0x1 for HTTP/2 CONTINUATION frame. diff --git a/lib/Test/Nginx/HTTP2.pm b/lib/Test/Nginx/HTTP2.pm --- a/lib/Test/Nginx/HTTP2.pm +++ b/lib/Test/Nginx/HTTP2.pm @@ -196,7 +196,8 @@ sub new_stream { my $type = defined $uri->{h2_continue} ? 0x9 : 0x1; my $flags = defined $uri->{continuation} ? 0x0 : 0x4; - $flags |= 0x1 unless defined $body || defined $uri->{body_more}; + $flags |= 0x1 unless defined $body || defined $uri->{body_more} + || defined $uri->{h2_continue}; $flags |= 0x8 if $padlen; $flags |= 0x20 if defined $dep || defined $prio;