http_server: detect disk-full when writing PID file
[unicorn.git] / t / t0301.ru
blob1ae8ea7b405ebe3f4dce950a40b23dccb5db7144
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)