aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2017-07-24 21:06:11 -0400
committerGitHub <noreply@github.com>2017-07-24 21:06:11 -0400
commit65f861ee1e8cdeec1533c565f949d05cf8195965 (patch)
tree57daa14bcb349a1b2c531d28f521def17aed4f84 /actionpack/lib/action_dispatch
parent7d133b23b6a366de3658c4e1c6af546e611de728 (diff)
parentc0e2cfdc3fd476e229ede5cda59dea6374a730e7 (diff)
downloadrails-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.rb2
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