puppetlabs/puppet — pull request #182 by jhelwig (2011-10-26 22:04:33+00:00)
Title: Tickets/2.7.x/9109 retrieve facts from POST in mongrel

When using Puppet with Mongrel, the facts were being lost with 2.7.0+
clients, since they were switched over to using POST requests for fact
submission. This was happening because the request parameters were
only being retrieved from the query parameters of the URL, which will
not include the POSTed data.

We now merge the body of the post together with the query parameters
when dealing with POST requests.

We also rewind the request body after reading it, since retrieving the
request body multiple times would return an empty string after the
first time.

Paired-with: Nick Lewis