From 64f6dc6dafd2f45481fde1b06841c4e23bcf290b Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Sat, 22 Aug 2015 15:52:15 -0700 Subject: 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. --- actionpack/lib/action_dispatch/http/request.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib') 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 -- cgit v1.2.3