port test/unit/test_ccc.rb to Perl 5
[unicorn.git] / t / t0014.ru
blob686d214f3012f13842f685e1c4549d83a41dade8
1 #\ -E none
2 # frozen_string_literal: false
3 use Rack::ContentLength
4 use Rack::ContentType, 'text/plain'
5 app = lambda do |env|
6   case env['rack.input']
7   when Unicorn::TeeInput
8     [ 200, {}, %w(OK) ]
9   else
10     [ 500, {}, %w(NO) ]
11   end
12 end
13 run app