HomePhorge

(#9109) Retrieve request parameters from the request body for POSTs
7d657963301eUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#9109) Retrieve request parameters from the request body for POSTs

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 <nick@puppetlabs.com>

Details

Provenance
Jacob Helwig <jacob@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUc5d90bdf092e: Merge pull request #157 from nfagerlund/maint/2.7.x/document_multiple_tags
Branches
Unknown
Tags
Unknown

Event Timeline

Jacob Helwig <jacob@puppetlabs.com> committed rPU7d657963301e: (#9109) Retrieve request parameters from the request body for POSTs (authored by Jacob Helwig <jacob@puppetlabs.com>).Oct 27 2011, 12:00 AM