提交 c0c72684 编写于 作者: A Aaron Patterson

dup the env hash on Header#env

This prevents external mutations from impacting the internals of the
request or the Header object.
上级 fbf6b98c
......@@ -86,7 +86,7 @@ def merge!(headers_or_env)
end
end
def env; @req.env; end
def env; @req.env.dup; end
private
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册