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
Rainbows! 0.96.0 - range support
[rainbows.git]
/
t
/
worker-follows-master-to-death.ru
blob
b372afd552300c26051ec51479de029f8e720bbc
1
use Rack::ContentLength
2
headers = { 'Content-Type' => 'text/plain' }
3
run lambda { |env|
4
/\A100-continue\z/i =~ env['HTTP_EXPECT'] and return [ 100, {}, [] ]
5
env['rack.input'].read
6
7
case env["PATH_INFO"]
8
when %r{/sleep/(\d+)}
9
Rainbows.sleep($1.to_i)
10
end
11
[ 200, headers, [ "#$$\n" ] ]
12
}