Permalink
Browse files

dup the env hash on Header#env

This prevents external mutations from impacting the internals of the
request or the Header object.
  • Loading branch information...
tenderlove committed Aug 21, 2015
1 parent fbf6b98 commit c0c726849bf697f6c76b86e704ca51b04e252341
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_dispatch/http/headers.rb
@@ -86,7 +86,7 @@ def merge!(headers_or_env)
end
end
def env; @req.env; end
def env; @req.env.dup; end
private

0 comments on commit c0c7268

Please sign in to comment.