Mercurial > hg > nginx-tests
comparison 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 |
comparison
equal
deleted
inserted
replaced
1298:84a661563eae | 1299:28e5f1fa80e1 |
---|---|
194 my $pad = defined $uri->{padding} ? $uri->{padding} : 0; | 194 my $pad = defined $uri->{padding} ? $uri->{padding} : 0; |
195 my $padlen = defined $uri->{padding} ? 1 : 0; | 195 my $padlen = defined $uri->{padding} ? 1 : 0; |
196 | 196 |
197 my $type = defined $uri->{h2_continue} ? 0x9 : 0x1; | 197 my $type = defined $uri->{h2_continue} ? 0x9 : 0x1; |
198 my $flags = defined $uri->{continuation} ? 0x0 : 0x4; | 198 my $flags = defined $uri->{continuation} ? 0x0 : 0x4; |
199 $flags |= 0x1 unless defined $body || defined $uri->{body_more}; | 199 $flags |= 0x1 unless defined $body || defined $uri->{body_more} |
200 || defined $uri->{h2_continue}; | |
200 $flags |= 0x8 if $padlen; | 201 $flags |= 0x8 if $padlen; |
201 $flags |= 0x20 if defined $dep || defined $prio; | 202 $flags |= 0x20 if defined $dep || defined $prio; |
202 | 203 |
203 if ($stream) { | 204 if ($stream) { |
204 $self->{last_stream} = $stream; | 205 $self->{last_stream} = $stream; |