diff options
Diffstat (limited to 't/close-pipe-response.ru')
-rw-r--r-- | t/close-pipe-response.ru | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/t/close-pipe-response.ru b/t/close-pipe-response.ru index 96116d4..4e34766 100644 --- a/t/close-pipe-response.ru +++ b/t/close-pipe-response.ru @@ -15,11 +15,10 @@ class CloseWrapper < Struct.new(:to_io) end use Rainbows::DevFdResponse run(lambda { |env| - body = 'hello world' - io = IO.popen("echo '#{body}'", 'rb') + io = IO.popen('cat random_blob', 'rb') [ 200, { - 'Content-Length' => (body.size + 1).to_s, + 'Content-Length' => ::File.stat('random_blob').size.to_s, 'Content-Type' => 'application/octet-stream', }, CloseWrapper[io] ] |