Skip to content

PUT request parameters needed to be URL-encoded #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libraries/Curl.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public function put($params = array(), $options = array())
$this->options($options);

$this->http_method('put');
$this->option(CURLOPT_POSTFIELDS, $params);
$this->option(CURLOPT_POSTFIELDS, http_build_query($params));

// Override method, I think this overrides $_POST with PUT data but... we'll see eh?
$this->option(CURLOPT_HTTPHEADER, array('X-HTTP-Method-Override: PUT'));
Expand Down