Permalink
Browse files

Improve rewindable input test coverage so tests fail when you remove …

…the middleware

Signed-off-by: Joshua Peek <josh@joshpeek.com>
  • Loading branch information...
1 parent fa750e0 commit 878aec9d9567438ad414d33b9b63c44160602420 @mislav mislav committed with josh Apr 18, 2009
@@ -206,8 +206,7 @@ def initialize(app)
end
def call(env)
- req = Rack::Request.new(env)
- req.params # Parse params
+ env['rack.input'].read
@app.call(env)
end
end
@@ -150,8 +150,7 @@ def initialize(app)
end
def call(env)
- req = Rack::Request.new(env)
- req.params # Parse params
+ env['rack.input'].read
@app.call(env)
end
end

0 comments on commit 878aec9

Please sign in to comment.