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
httpdate: favor gettimeofday(2) over time(2) for correctness
[unicorn.git]
/
t
/
t0301.ru
blob
ce682136394cdcf2620715d080f5e3b703456df3
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)