event_machine: ResponseChunkPipe style cleanup
[rainbows.git] / t / fast-pipe-response.ru
blob01f4d59d1ffc206436ee0fa946fd8015f835c865
1 # must be run without Rack::Lint since that clobbers to_path
2 use Rainbows::DevFdResponse
3 run(lambda { |env|
4   env['rainbows.autochunk'] = false
5   [ 200,
6     {
7       'X-Rainbows-Autochunk' => 'no',
8       'Content-Length' => ::File.stat('random_blob').size.to_s,
9       'Content-Type' => 'application/octet-stream',
10     },
11     IO.popen('cat random_blob', 'rb') ]