Mercurial > hg > nginx-tests
diff h2_proxy_request_buffering.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 | 4e48bf51714f |
children | 236d038dc04a |
line wrap: on
line diff
--- a/h2_proxy_request_buffering.t Thu Oct 10 14:49:26 2019 +0300 +++ b/h2_proxy_request_buffering.t Thu Oct 10 18:15:02 2019 +0300 @@ -240,6 +240,8 @@ $got += $chunked ? hex $_ : $_ for $chunked ? $body =~ /(\w+)\x0d\x0a?\w+\x0d\x0a?/g : length($body); + next if $chunked && !$extra{body_more} + && $buf !~ /^0\x0d\x0a?/m; last if $got >= $len; }