Ruby 1.9.1 requires hash given to foormat to contain symbols.
This commit is contained in:
parent
0cf190001e
commit
10389a4c29
@ -205,7 +205,7 @@ def redirect(*args, &block)
|
||||
lambda do |env|
|
||||
req = Request.new(env)
|
||||
|
||||
uri = URI.parse(path_proc.call(req.params))
|
||||
uri = URI.parse(path_proc.call(req.params.symbolize_keys))
|
||||
uri.scheme ||= req.scheme
|
||||
uri.host ||= req.host
|
||||
uri.port ||= req.port unless req.port == 80
|
||||
|
Loading…
Reference in New Issue
Block a user