# HG changeset patch # User Maxim Dounin # Date 1413848780 -14400 # Node ID 3036e3af0e08bf7f22751edd91251fdb5fcb71fa # Parent 8474d27c91477271a536ea2fb5527e294cd9d69c Tests: more Vary normalization tests. diff --git a/proxy_cache_vary.t b/proxy_cache_vary.t --- a/proxy_cache_vary.t +++ b/proxy_cache_vary.t @@ -103,7 +103,7 @@ EOF $t->write_file('asterisk', 'SEE-THIS'); $t->write_file('complex', 'SEE-THIS'); -$t->try_run('no proxy_ignore_headers Vary')->plan(41); +$t->try_run('no proxy_ignore_headers Vary')->plan(42); ############################################################################### @@ -237,10 +237,13 @@ like(get('/asterisk', 'gzip'), qr/MISS/m # specification (e.g., reordering field values when order is not # significant; case-normalization, where values are defined to be # case-insensitive) +# +# Only whitespace normalization is currently implemented. like(get('/', 'foo, bar'), qr/MISS/ms, 'normalize first'); like(get('/', 'foo,bar'), qr/HIT/ms, 'normalize whitespace'); like(get('/', 'foo,, ,bar , '), qr/HIT/ms, 'normalize empty'); +like(get('/', 'foobar'), qr/MISS/ms, 'normalize no whitespace mismatch'); TODO: { local $TODO = 'not yet';