Skip to content

Commit

Permalink
Body could be scalar.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephpy committed Dec 14, 2015
1 parent 902357c commit 9900569
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 9900569

Please sign in to comment.