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_request: support rack.hijack by default
[unicorn.git]
/
t
/
t0006.ru
blob
c39e8f6497ede12b2258977fbb1e4e749ab3c24f
1
use Rack::ContentLength
2
use Rack::ContentType, "text/plain"
3
run lambda { |env|
4
5
# our File objects for stderr/stdout should always have #path
6
# and be sync=true
7
ok = $stderr.sync &&
8
$stdout.sync &&
9
String === $stderr.path &&
10
String === $stdout.path
11
12
[ 200, {}, [ "#{ok}\n" ] ]
13
}