Mercurial > hg > nginx-tests
changeset 1711:6c03c329ed95
Tests: requests with both Content-Length and Transfer-Encoding.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 29 Jun 2021 11:57:39 +0300 |
parents | f3de5730bc06 |
children | 0605f9a6f7b0 |
files | body_chunked.t |
diffstat | 1 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/body_chunked.t Tue Jun 29 11:57:38 2021 +0300 +++ b/body_chunked.t Tue Jun 29 11:57:39 2021 +0300 @@ -22,7 +22,7 @@ select STDERR; $| = 1; select STDOUT; $| = 1; -my $t = Test::Nginx->new()->has(qw/http proxy rewrite/)->plan(16); +my $t = Test::Nginx->new()->has(qw/http proxy rewrite/)->plan(17); $t->write_file_expand('nginx.conf', <<'EOF'); @@ -178,6 +178,14 @@ like(http_transfer_encoding('chunked, identity'), qr/501 Not Implemented/, 'transfer encoding list'); +TODO: { +local $TODO = 'not yet' unless $t->has_version('1.21.1'); + +like(http_transfer_encoding("chunked\nContent-Length: 5"), qr/400 Bad/, + 'transfer encoding with content-length'); + +} + ############################################################################### sub read_body_file {