Add -N or --no-default-middleware option.
[rainbows.git] / t / worker-follows-master-to-death.ru
blobb372afd552300c26051ec51479de029f8e720bbc
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
7   case env["PATH_INFO"]
8   when %r{/sleep/(\d+)}
9     Rainbows.sleep($1.to_i)
10   end
11   [ 200, headers, [ "#$$\n" ] ]