提交 199d1abe 编写于 作者: M Michael Koziarski

Use the derived request_method from AD::Request rather than the raw REQUEST_METHOD from rack.

This takes _method into account so the log shows the method which ActionController sees.
上级 68543589
......@@ -21,7 +21,7 @@ def before_dispatch(env)
request = ActionDispatch::Request.new(env)
path = request.fullpath
info "\n\nStarted #{env["REQUEST_METHOD"]} \"#{path}\" " \
info "\n\nStarted #{request.request_method} \"#{path}\" " \
"for #{request.ip} at #{Time.now.to_default_s}"
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册