Skip to content

Commit 8bef053

Browse files
authored
CurlDriver update #21
After updating PSR dependencies getContents() return empty string, to avoid this behavior need use rewind() or seek(0)
1 parent d66b468 commit 8bef053

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/Http/Driver/CurlDriver.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ public function execute(RequestInterface $request)
8181
$response = $response->withStatus($info['http_code']);
8282

8383
$response->getBody()->write($result);
84+
$response->getBody()->rewind(); // empty getContents() without rewind()
8485

8586
return $response;
8687
}

0 commit comments

Comments
 (0)