Mercurial > hg > nginx-tests
comparison http_variables.t @ 1130:cb46ac65d50e
Tests: fixed expected value for multiple Cache-Control headers.
Expect the only valid separator in the $sent_http_cache_control variable.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 14 Feb 2017 17:09:52 +0300 |
parents | 577a5899a33d |
children | 4bc1490cedbc |
comparison
equal
deleted
inserted
replaced
1129:1173800a4a19 | 1130:cb46ac65d50e |
---|---|
85 $t->stop(); | 85 $t->stop(); |
86 | 86 |
87 my $log = $t->read_file('cc.log'); | 87 my $log = $t->read_file('cc.log'); |
88 like($log, qr!^: -$!m, 'no uri'); | 88 like($log, qr!^: -$!m, 'no uri'); |
89 like($log, qr!^/: -$!m, 'no header'); | 89 like($log, qr!^/: -$!m, 'no header'); |
90 like($log, qr!^/set: max-age=3600[,;] private[,;] must-revalidate$!m, | 90 like($log, qr!^/set: max-age=3600, private, must-revalidate$!m, |
91 'multi headers'); | 91 'multi headers'); |
92 | 92 |
93 like($log, qr!^/redefine: no-cache$!m, 'ignoring headers with (hash == 0)'); | 93 like($log, qr!^/redefine: no-cache$!m, 'ignoring headers with (hash == 0)'); |
94 | 94 |
95 ############################################################################### | 95 ############################################################################### |