t0015: increase reliability of test
[rainbows.git] / t / kgio-pipe-response.ru
blobedd2aacdf5e2e2dac2e85703feb0339520d89d28
1 # must be run without Rack::Lint since that clobbers to_path
2 use Rainbows::DevFdResponse
3 run(lambda { |env|
4   [ 200,
5     {
6       'Content-Length' => ::File.stat('random_blob').size.to_s,
7       'Content-Type' => 'application/octet-stream',
8     },
9     Rainbows::Fiber::IO::Pipe.popen('cat random_blob', 'rb') ]