提交 10389a4c 编写于 作者: J José Valim

Ruby 1.9.1 requires hash given to foormat to contain symbols.

上级 0cf19000
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册