repo.or.cz
/
unicorn.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
t/*.t: use write_file helper function
[unicorn.git]
/
t
/
client_body_buffer_size.ru
blob
1a0fb168d0c6178d0fdeefa1c92e661d2997eff1
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