Ruby 1.9.1 requires hash given to foormat to contain symbols.

This commit is contained in:
José Valim 2010-01-06 00:42:58 +01:00
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