summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/puppet/network/http/rack/rest.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/puppet/network/http/rack/rest.rb b/lib/puppet/network/http/rack/rest.rb
index b7e1d9709..602927a78 100644
--- a/lib/puppet/network/http/rack/rest.rb
+++ b/lib/puppet/network/http/rack/rest.rb
@@ -76,9 +76,7 @@ class Puppet::Network::HTTP::RackREST < Puppet::Network::HTTP::RackHttpHandler
# request.body has some limitiations, so we need to concat it back
# into a regular string, which is something puppet can use.
def body(request)
- body = ''
- request.body.each { |part| body += part }
- body
+ request.body.read
end
def extract_client_info(request)