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
+++ b/h2.t
@@ -32,7 +32,7 @@ plan(skip_all => 'IO::Socket::SSL too ol
 
 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 @@ http {
         location /gzip.html {
             gzip on;
             gzip_min_length 0;
+            gzip_vary on;
             alias %%TESTDIR%%/t2.html;
         }
         location /frame_size {
@@ -1351,6 +1352,7 @@ is($frame->{data}, 'second', 'virtual ho
 
 ($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');