From ae3bd27580727453250feb29a722324e185b3dea Mon Sep 17 00:00:00 2001 From: Michael Fellinger Date: Mon, 30 Mar 2009 10:32:28 +0900 Subject: [PATCH] Allow arbitrary number of arguments for Request::new --- lib/rack/request.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/rack/request.rb b/lib/rack/request.rb index e69dcab..c1e272a 100644 --- a/lib/rack/request.rb +++ b/lib/rack/request.rb @@ -17,7 +17,7 @@ module Rack # The environment of the request. attr_reader :env - def self.new(env) + def self.new(env, *args) if self == Rack::Request env["rack.request"] ||= super else -- 1.6.2.1.404.gb0085