Skip to content

Commit

Permalink
Allow arbitrary number of arguments for Request::new
Browse files Browse the repository at this point in the history
  • Loading branch information
manveru committed Mar 31, 2009
1 parent 91a10e2 commit 4cc1d6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rack/request.rb
Expand Up @@ -17,7 +17,7 @@ class Request
# 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
Expand Down

0 comments on commit 4cc1d6e

Please sign in to comment.