Mercurial > hg > nginx-tests
comparison h2_proxy_request_buffering_ssl.t @ 1519:787d904bdfe0
Tests: fixed reading chunked body in HTTP/2 unbuffered body tests.
Previously, tests didn't expect that a final chunk can be sent separately.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 10 Oct 2019 18:15:02 +0300 |
parents | dbce8fb5f5f8 |
children | 236d038dc04a |
comparison
equal
deleted
inserted
replaced
1518:fca71a8ebf6d | 1519:787d904bdfe0 |
---|---|
243 | 243 |
244 my $got = 0; | 244 my $got = 0; |
245 $got += $chunked ? hex $_ : $_ for $chunked | 245 $got += $chunked ? hex $_ : $_ for $chunked |
246 ? $body =~ /(\w+)\x0d\x0a?\w+\x0d\x0a?/g | 246 ? $body =~ /(\w+)\x0d\x0a?\w+\x0d\x0a?/g |
247 : length($body); | 247 : length($body); |
248 next if $chunked && !$extra{body_more} | |
249 && $buf !~ /^0\x0d\x0a?/m; | |
248 last if $got >= $len; | 250 last if $got >= $len; |
249 } | 251 } |
250 | 252 |
251 return $body; | 253 return $body; |
252 }; | 254 }; |