This commit is contained in:
agentzh (章亦春) 2011-11-09 20:27:10 +08:00
Родитель fa5cafdcff
Коммит ae29491ddb
1 изменённых файлов: 20 добавлений и 0 удалений

Просмотреть файл

@ -702,3 +702,23 @@ WWW-Authenticate: blah
--- response_body
Foo: nil
=== TEST 36: set multi values to cache-control and override it with multiple values (to reproduce a bug)
--- config
location /lua {
content_by_lua '
ngx.header.cache_control = { "private", "no-store", "foo", "bar", "baz" }
ngx.header.cache_control = { "no-cache", "blah", "foo" }
ngx.say("Cache-Control: ", ngx.var.sent_http_cache_control)
ngx.say("Cache-Control: ", table.concat(ngx.header.cache_control, "; "))
';
}
--- request
GET /lua
--- response_headers
Cache-Control: no-cache, blah, foo
--- response_body
Cache-Control: no-cache; blah; foo
Cache-Control: no-cache; blah; foo