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
disallow /^content_length$/i + /^transfer_encoding$/i
[unicorn.git]
/
t
/
t0301.ru
blob
54929b181aee04e874fa5e3f5a8413c3ad265852
1
#\-N --debug
2
# frozen_string_literal: false
3
run(lambda do |env|
4
case env['PATH_INFO']
5
when '/vars'
6
b = "debug=#{$DEBUG.inspect}\n" \
7
"lint=#{caller.grep(%r{rack/lint\.rb})[0].split(':')[0]}\n"
8
end
9
h = {
10
'content-length' => b.size.to_s,
11
'content-type' => 'text/plain',
12
}
13
[ 200, h, [ b ] ]
14
end)