repo.or.cz
/
rainbows.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Revert "http_server: cap timeout at 32-bit LONG_MAX seconds"
[rainbows.git]
/
t
/
fast-pipe-response.ru
blob
77c8d710ecc206f0ebc52f9f74aedaa79e1ab2ff
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
IO.popen('cat random_blob', 'rb') ]
10
})