diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2017-07-24 21:06:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-24 21:06:11 -0400 |
commit | 65f861ee1e8cdeec1533c565f949d05cf8195965 (patch) | |
tree | 57daa14bcb349a1b2c531d28f521def17aed4f84 /actionpack/lib/action_dispatch | |
parent | 7d133b23b6a366de3658c4e1c6af546e611de728 (diff) | |
parent | c0e2cfdc3fd476e229ede5cda59dea6374a730e7 (diff) | |
download | rails-65f861ee1e8cdeec1533c565f949d05cf8195965.tar.gz rails-65f861ee1e8cdeec1533c565f949d05cf8195965.tar.bz2 rails-65f861ee1e8cdeec1533c565f949d05cf8195965.zip |
Merge pull request #29919 from kirs/actionpack-frozen-friendly
Make actionpack frozen string friendly
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/http/request.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/http/request.rb b/actionpack/lib/action_dispatch/http/request.rb index fd986d88e7..94b0d4880c 100644 --- a/actionpack/lib/action_dispatch/http/request.rb +++ b/actionpack/lib/action_dispatch/http/request.rb @@ -300,7 +300,7 @@ module ActionDispatch # variable is already set, wrap it in a StringIO. def body if raw_post = get_header("RAW_POST_DATA") - raw_post.force_encoding(Encoding::BINARY) + raw_post = raw_post.dup.force_encoding(Encoding::BINARY) StringIO.new(raw_post) else body_stream |