Skip to content

Commit c885c5f

Browse files
committed
Merge pull request #41 from rezzza/stephpy-patch-1
Body could be scalar.
2 parents 421c50f + 9900569 commit c885c5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rest/RestApiBrowser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ private function send($method, $uri, $body = null)
125125
}
126126
$body = is_array($body) ? http_build_query($body) : $body;
127127
$stream = new Stream('php://memory', 'rw');
128-
if (is_string($body)) {
128+
if (is_scalar($body)) {
129129
$stream->write($body);
130130
}
131131

0 commit comments

Comments
 (0)