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
port test/unit/test_ccc.rb to Perl 5
[unicorn.git]
/
t
/
t0013.ru
blob
e4250939d548f79cc71d88867648ca0d298b9b7c
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::StreamInput
8
[ 200, {}, %w(OK) ]
9
else
10
[ 500, {}, %w(NO) ]
11
end
12
end
13
run app