t/lib.perl: fix Perl integration tests w/o installation
[unicorn.git] / t / client_body_buffer_size.ru
blob1a0fb168d0c6178d0fdeefa1c92e661d2997eff1
1 #\ -E none
2 # frozen_string_literal: false
3 app = lambda do |env|
4   input = env['rack.input']
5   case env["PATH_INFO"]
6   when "/tmp_class"
7     body = input.instance_variable_get(:@tmp).class.name
8   when "/input_class"
9     body = input.class.name
10   else
11     return [ 500, {}, [] ]
12   end
13   [ 200, {}, [ body ] ]
14 end
15 run app