# HG changeset patch # User Maxim Dounin # Date 1244487978 -14400 # Node ID cbc17561ef4d7d8522721179cdb205951d605d8f # Parent 9ab3762332b94ee915dcc829e31518fa9a0168ce# Parent 5276d85d50404e754ad6b02752eeb0adecc5e2ab Merge. diff --git a/proxy-chunked.t b/proxy-chunked.t --- a/proxy-chunked.t +++ b/proxy-chunked.t @@ -13,7 +13,7 @@ use warnings; use strict; -use Test::More tests => 1; +use Test::More tests => 3; use IO::Select; @@ -53,11 +53,22 @@ http { proxy_pass http://127.0.0.1:8081; proxy_read_timeout 1s; } + location /nobuffering { + proxy_pass http://127.0.0.1:8081; + proxy_read_timeout 1s; + proxy_buffering off; + } + location /inmemory.html { + ssi on; + } } } EOF +$t->write_file('inmemory.html', + ''); + $t->run_daemon(\&http_chunked_daemon); $t->run(); @@ -67,6 +78,8 @@ EOF local $TODO = 'not yet'; like(http_get('/'), qr/\x0d\x0aSEE-THIS$/s, 'chunked'); +like(http_get('/nobuffering'), qr/\x0d\x0aSEE-THIS$/s, 'chunked nobuffering'); +like(http_get('/inmemory.html'), qr/\x0d\x0aSEE-THIS$/s, 'chunked inmemory'); } ###############################################################################