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
http_server: detect disk-full when writing PID file
[unicorn.git]
/
t
/
t0301.ru
blob
1ae8ea7b405ebe3f4dce950a40b23dccb5db7144
1
#\-N --debug
2
run(lambda do |env|
3
case env['PATH_INFO']
4
when '/vars'
5
b = "debug=#{$DEBUG.inspect}\n" \
6
"lint=#{caller.grep(%r{rack/lint\.rb})[0].split(':')[0]}\n"
7
end
8
h = {
9
'Content-Length' => b.size.to_s,
10
'Content-Type' => 'text/plain',
11
}
12
[ 200, h, [ b ] ]
13
end)