Skip to content

Commit 5ca6a7f

Browse files
author
awu
committed
refactor: update body check in CurlFactory to allow null values
1 parent 05e454e commit 5ca6a7f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Stream/CurlFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public static function create(
6868
$options[CURLOPT_TIMEOUT] = $timeout;
6969
}
7070

71-
if (is_string($request->getBody())) {
71+
if ($request->getBody() !== null) {
7272
$options[CURLOPT_POSTFIELDS] = $request->getBody();
7373
}
7474

0 commit comments

Comments
 (0)