# HG changeset patch # User Maxim Dounin # Date 1373375212 -14400 # Node ID f175dc25f2490dc0d6dcf2e9c77bacf630f5363a # Parent f4aab0e66ed052524a06b193f5f3afde1444903c Tests: proxy_store with HEAD requests. Obsolete X-Accel-Expires test removed, as there are no plans to commit long obsolete patch for X-Accel-Expires and proxy_store. Testing that responses to HEAD requests are not stored is added instead. diff --git a/proxy_store.t b/proxy_store.t --- a/proxy_store.t +++ b/proxy_store.t @@ -46,9 +46,6 @@ http { location /ssi.html { ssi on; } - location /index-nostore.html { - add_header X-Accel-Expires 0; - } location /index-big.html { limit_rate 200k; } @@ -71,14 +68,8 @@ EOF like(http_get('/store-index.html'), qr/SEE-THIS/, 'proxy request'); ok(-e $t->testdir() . '/store-index.html', 'result stored'); -like(http_get('/store-index-nostore.html'), qr/SEE-THIS/, - 'proxy request with x-accel-expires'); - -TODO: { -local $TODO = 'patch rejected'; - +like(http_head('/store-index-nostore.html'), qr/200 OK/, 'head request'); ok(!-e $t->testdir() . '/store-index-nostore.html', 'result not stored'); -} ok(scalar @{[ glob $t->testdir() . '/proxy_temp/*' ]} == 0, 'no temp files');