httpdate: favor gettimeofday(2) over time(2) for correctness
[unicorn.git] / t / t0014.ru
blobb0bd2b74cef5a8ac229d42fb239f8e942f5b18c5
1 #\ -E none
2 use Rack::ContentLength
3 use Rack::ContentType, 'text/plain'
4 app = lambda do |env|
5   case env['rack.input']
6   when Unicorn::TeeInput
7     [ 200, {}, %w(OK) ]
8   else
9     [ 500, {}, %w(NO) ]
10   end
11 end
12 run app