From 71a1cf90ce16ce6951f1ce76fcea98b13bc54576 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 17 Oct 2009 22:42:56 -0700 Subject: tests: sleep.ru slurps rack.input stream Since we do "Expect: 100-continue" handling, make sure we read anything in the request body the client will send us. --- t/sleep.ru | 1 + 1 file changed, 1 insertion(+) diff --git a/t/sleep.ru b/t/sleep.ru index e163c79..9e4eff1 100644 --- a/t/sleep.ru +++ b/t/sleep.ru @@ -3,6 +3,7 @@ use Rack::ContentLength run lambda { |env| /\A100-continue\z/i =~ env['HTTP_EXPECT'] and return [ 100, {}, [] ] + env['rack.input'].read nr = 1 env["PATH_INFO"] =~ %r{/([\d\.]+)\z} and nr = $1.to_f -- cgit v1.2.3-24-ge0c7