Mercurial > hg > nginx-tests
changeset 847:7de036e89770
Tests: added HTTP/2 test with gzip vary.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Fri, 05 Feb 2016 18:27:21 +0300 |
parents | 9b5e1c5f0240 |
children | 40ad07634a5e |
files | h2.t |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/h2.t Fri Feb 05 17:40:56 2016 +0300 +++ b/h2.t Fri Feb 05 18:27:21 2016 +0300 @@ -32,7 +32,7 @@ my $t = Test::Nginx->new()->has(qw/http http_ssl http_v2 proxy cache/) ->has(qw/limit_conn rewrite realip shmem/) - ->has_daemon('openssl')->plan(307); + ->has_daemon('openssl')->plan(308); # Some systems may have also a bug in not treating zero writev iovcnt as EINVAL @@ -81,6 +81,7 @@ location /gzip.html { gzip on; gzip_min_length 0; + gzip_vary on; alias %%TESTDIR%%/t2.html; } location /frame_size { @@ -1351,6 +1352,7 @@ ($frame) = grep { $_->{type} eq "HEADERS" } @$frames; is($frame->{headers}->{'content-encoding'}, 'gzip', 'gzip - encoding'); +is($frame->{headers}->{'vary'}, 'Accept-Encoding', 'gzip - vary'); ($frame) = grep { $_->{type} eq "DATA" } @$frames; gunzip_like($frame->{data}, qr/^SEE-THIS\Z/, 'gzip - DATA');