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
Add rack.after_reply functionality
[unicorn.git]
/
t
/
t0014.ru
blob
b0bd2b74cef5a8ac229d42fb239f8e942f5b18c5
1
#\ -E none
2
use Rack::ContentLength
3
use Rack::ContentType, 'text/plain'
4
app = lambda do |env|
5
case env['rack.input']
6
when Unicorn::TeeInput
7
[ 200, {}, %w(OK) ]
8
else
9
[ 500, {}, %w(NO) ]
10
end
11
end
12
run app