support for Rack hijack in request and response
[unicorn.git] / t / t0006.ru
blobc39e8f6497ede12b2258977fbb1e4e749ab3c24f
1 use Rack::ContentLength
2 use Rack::ContentType, "text/plain"
3 run lambda { |env|
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
12   [ 200, {}, [ "#{ok}\n" ] ]