about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-10-17 22:42:56 -0700
committerEric Wong <normalperson@yhbt.net>2009-10-17 22:42:56 -0700
commit71a1cf90ce16ce6951f1ce76fcea98b13bc54576 (patch)
tree81d1f0f88317115c58e656a76985150aad575bf9 /t
parentce5bb179bcd0ac2921da636375cb3821b79c428c (diff)
downloadrainbows-71a1cf90ce16ce6951f1ce76fcea98b13bc54576.tar.gz
Since we do "Expect: 100-continue" handling, make sure
we read anything in the request body the client
will send us.
Diffstat (limited to 't')
-rw-r--r--t/sleep.ru1
1 files changed, 1 insertions, 0 deletions
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