# HG changeset patch # User Sergey Kandaurov # Date 1521453095 -10800 # Node ID 940e04c58a797fa1054a14e4349ced86391b5c96 # Parent 28e5f1fa80e11c853c99fc7561c9342304aee4c6 Tests: fixed initial window size for HTTP/2 streams with given ID. 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 @@ -205,8 +205,8 @@ sub new_stream { $self->{last_stream} = $stream; } else { $self->{last_stream} += 2; - $self->{streams}{$self->{last_stream}} = $self->{iws}; } + $self->{streams}{$self->{last_stream}} = $self->{iws}; $buf = pack("xxx"); # Length stub $buf .= pack("CC", $type, $flags); # END_HEADERS