comparison http_variables.t @ 264:5ed8ef14f79c

Tests: fixed test of multiple Cache-Control headers. The $sent_http_cache_control variable will soon use comma as a separator.
author Ruslan Ermilov <ru@nginx.com>
date Wed, 27 Feb 2013 17:12:25 +0400
parents 0ab1f0e978b5
children cd61bacbbfe0
comparison
equal deleted inserted replaced
263:71bb2a896c7a 264:5ed8ef14f79c
82 $log = <LOG>; 82 $log = <LOG>;
83 close LOG; 83 close LOG;
84 } 84 }
85 85
86 like($log, qr!^/: -$!m, 'no header'); 86 like($log, qr!^/: -$!m, 'no header');
87 like($log, qr!^/set: max-age=3600; private; must-revalidate$!m, 87 like($log, qr!^/set: max-age=3600[,;] private[,;] must-revalidate$!m,
88 'multi headers'); 88 'multi headers');
89 89
90 like($log, qr!^/redefine: no-cache$!m, 'ignoring headers with (hash == 0)'); 90 like($log, qr!^/redefine: no-cache$!m, 'ignoring headers with (hash == 0)');
91 91
92 ############################################################################### 92 ###############################################################################