aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2015-08-22 15:52:15 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2015-08-22 15:52:15 -0700
commit64f6dc6dafd2f45481fde1b06841c4e23bcf290b (patch)
tree82ee33a3b82dab20b3521d812d2443f840b28a5e /actionpack
parent3e0b9326f96645441e4e7e2497c3006e9c5a796a (diff)
downloadrails-64f6dc6dafd2f45481fde1b06841c4e23bcf290b.tar.gz
rails-64f6dc6dafd2f45481fde1b06841c4e23bcf290b.tar.bz2
rails-64f6dc6dafd2f45481fde1b06841c4e23bcf290b.zip
use `body_stream` instead of getting the env value ourselves
we have a method that knows how to get rack.input, so lets use that.
Diffstat (limited to 'actionpack')
-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 0595d37acf..0f1c20b95e 100644
--- a/actionpack/lib/action_dispatch/http/request.rb
+++ b/actionpack/lib/action_dispatch/http/request.rb
@@ -296,7 +296,7 @@ module ActionDispatch
raw_post.force_encoding(Encoding::BINARY)
StringIO.new(raw_post)
else
- get_header('rack.input')
+ body_stream
end
end