summaryrefslogtreecommitdiffstats
path: root/lib/puppet/network/http/rack
diff options
context:
space:
mode:
authorChristian Hofstaedtler <ch+git@zeha.at>2009-05-15 14:30:14 +0200
committerChristian Hofstaedtler <ch+git@zeha.at>2009-05-15 14:30:14 +0200
commite1779c7711458f718babca5db27427eeb14ae724 (patch)
tree8841b4186aeb2702ea5bc81246796d27abff75a3 /lib/puppet/network/http/rack
parentfb957ccb6636ce86bd98c141d5818c54bc0d4659 (diff)
downloadpuppet-e1779c7711458f718babca5db27427eeb14ae724.tar.gz
puppet-e1779c7711458f718babca5db27427eeb14ae724.tar.xz
puppet-e1779c7711458f718babca5db27427eeb14ae724.zip
RackXMLRPC: buffer request contents in memory, as a real string.
Fixes #2268 "Rack::RewindableInput is not a valid input stream."
Diffstat (limited to 'lib/puppet/network/http/rack')
-rw-r--r--lib/puppet/network/http/rack/xmlrpc.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/network/http/rack/xmlrpc.rb b/lib/puppet/network/http/rack/xmlrpc.rb
index ef686cd4f..4fc9e82fc 100644
--- a/lib/puppet/network/http/rack/xmlrpc.rb
+++ b/lib/puppet/network/http/rack/xmlrpc.rb
@@ -32,7 +32,7 @@ class Puppet::Network::HTTP::RackXMLRPC < Puppet::Network::HTTP::RackHttpHandler
# get auth/certificate data
client_request = build_client_request(request)
- response_body = @xmlrpc_server.process(request.body, client_request)
+ response_body = @xmlrpc_server.process(request.body.read(), client_request)
response.status = 200
response['Content-Type'] = 'text/xml; charset=utf-8'