summary refs log tree commit homepage
path: root/t/t0113.ru
blob: 48a3a34018bd2ce250f71183ac545d46c2e787b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#\ -E none
use Rack::ContentLength
use Rack::ContentType, 'text/plain'
app = lambda do |env|
  case env['rack.input']
  when Unicorn::StreamInput
    [ 200, {}, %w(OK) ]
  else
    [ 500, {}, %w(NO) ]
  end
end
run app