# HG changeset patch # User Sergey Kandaurov # Date 1612802871 -10800 # Node ID 5b1fa6e32549f194328dcd4ba87567197ea30ca5 # Parent 0190dd24d328d40f1e853a03f878df6ff5ac1a0f Tests: avoid http2_max_field_size in h2_trailers.t. URI used to pass a large parameter is adjusted to fit the default limit. diff --git a/h2_trailers.t b/h2_trailers.t --- 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;