提交 3e5f5f2a 编写于 作者: J Jeremy Kemper

Revert "Pass in the request as an optional second parameter to redirect"

Was not tested.

This reverts commit a8c3c71a.
上级 e3959970
......@@ -243,7 +243,7 @@ def redirect(*args, &block)
lambda do |env|
req = Request.new(env)
uri = URI.parse(path_proc.call(req.symbolized_path_parameters, req))
uri = URI.parse(path_proc.call(req.symbolized_path_parameters))
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.
先完成此消息的编辑!
想要评论请 注册