diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-10-17 22:42:56 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-10-17 22:42:56 -0700 |
commit | 71a1cf90ce16ce6951f1ce76fcea98b13bc54576 (patch) | |
tree | 81d1f0f88317115c58e656a76985150aad575bf9 | |
parent | ce5bb179bcd0ac2921da636375cb3821b79c428c (diff) | |
download | rainbows-71a1cf90ce16ce6951f1ce76fcea98b13bc54576.tar.gz |
Since we do "Expect: 100-continue" handling, make sure we read anything in the request body the client will send us.
-rw-r--r-- | t/sleep.ru | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |