Mercurial > hg > nginx-tests
changeset 1646:5b1fa6e32549
Tests: avoid http2_max_field_size in h2_trailers.t.
URI used to pass a large parameter is adjusted to fit the default limit.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Mon, 08 Feb 2021 19:47:51 +0300 |
parents | 0190dd24d328 |
children | 35beaf85de72 |
files | h2_trailers.t |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/h2_trailers.t +++ b/h2_trailers.t @@ -44,8 +44,6 @@ http { add_trailer X-Var $host; } - http2_max_field_size 256k; - location /continuation { # many trailers to send in parts add_trailer X-LongHeader $arg_h; @@ -108,7 +106,7 @@ is($frame->{flags}, 5, 'no data - traile # CONTINUATION in response trailers $s = Test::Nginx::HTTP2->new(); -$sid = $s->new_stream({ path => '/continuation?h=' . 'x' x 2**12 }); +$sid = $s->new_stream({ path => '/continuation?h=' . 'x' x 4000 }); $frames = $s->read(all => [{ sid => $sid, type => 'CONTINUATION' }]); @$frames = grep { $_->{type} =~ "HEADERS|CONTINUATION|DATA" } @$frames;