提交 2d261ba4 编写于 作者: M Matthew Draper

Merge pull request #20296 from vngrs/use_memoization_to_minimize_memory_usage

Use memoization while accessing request headers for minimizing memory usage
......@@ -181,7 +181,7 @@ def head?
#
# request.headers["Content-Type"] # => "text/plain"
def headers
Http::Headers.new(@env)
@headers ||= Http::Headers.new(@env)
end
# Returns a +String+ with the last requested path including their params.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册