Skip to content

Commit

Permalink
Merge pull request #41 from rezzza/stephpy-patch-1
Browse files Browse the repository at this point in the history
Body could be scalar.
  • Loading branch information
stephpy committed Dec 14, 2015
2 parents 421c50f + 9900569 commit c885c5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Rest/RestApiBrowser.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ private function send($method, $uri, $body = null)
}
$body = is_array($body) ? http_build_query($body) : $body;
$stream = new Stream('php://memory', 'rw');
if (is_string($body)) {
if (is_scalar($body)) {
$stream->write($body);
}

Expand Down

0 comments on commit c885c5f

Please sign in to comment.