提交 3ef98a14 编写于 作者: A Aaron Patterson

fix warnings

上级 8eb7bcb6
......@@ -318,7 +318,7 @@ def send_request(uri_or_host, method, path)
def request_path_params(path, method: 'GET')
resp = send_request URI('http://localhost' + path), method.to_s.upcase, nil
status, headers, body = *resp
status = resp.first
if status == 404
raise ActionController::RoutingError, "No route matches #{path.inspect}"
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册