Skip to content

Commit

Permalink
Merge pull request #6 from TimGroenenberg/add-empty-values
Browse files Browse the repository at this point in the history
Also add null values to requestBody
  • Loading branch information
Tim Groenenberg committed Dec 12, 2017
2 parents 9c33aec + ad9d48d commit b8467b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ private function getRequestBody(array $parameters, array $files)
{
$body = array();
foreach ($parameters as $parameterName => $parameterValue) {
if (is_scalar($parameterValue)) {
if (is_scalar($parameterValue) || is_null($parameterValue)) {
$body[] = array(
'name' => $parameterName,
'contents' => strval($parameterValue),
Expand Down

0 comments on commit b8467b0

Please sign in to comment.