changeset 1300:940e04c58a79

Tests: fixed initial window size for HTTP/2 streams with given ID.
author Sergey Kandaurov <pluknet@nginx.com>
date Mon, 19 Mar 2018 12:51:35 +0300
parents 28e5f1fa80e1
children d6382e557fc0
files lib/Test/Nginx/HTTP2.pm
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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