Mercurial > hg > nginx-tests
diff lib/Test/Nginx/HTTP2.pm @ 1299:28e5f1fa80e1
Tests: do not set undefined flag 0x1 for HTTP/2 CONTINUATION frame.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 15 Mar 2018 19:31:52 +0300 |
parents | 84a661563eae |
children | 940e04c58a79 |
line wrap: on
line diff
--- 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;