提交 246bfcb4 编写于 作者: A Aaron Patterson

whitespace

上级 5e81e6ca
......@@ -24,7 +24,7 @@ def call(env)
def serve(req)
req.check_path_parameters!
uri = URI.parse(path(req.path_parameters, req))
unless uri.host
if relative_path?(uri.path)
uri.path = "#{req.script_name}/#{uri.path}"
......@@ -32,7 +32,7 @@ def serve(req)
uri.path = req.script_name.empty? ? "/" : req.script_name
end
end
uri.scheme ||= req.scheme
uri.host ||= req.host
uri.port ||= req.port unless req.standard_port?
......@@ -124,7 +124,7 @@ def path(params, request)
url_options[:script_name] = request.script_name
end
end
ActionDispatch::Http::URL.url_for url_options
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册