Skip to content

Commit da1a969

Browse files
committed
Client: fix API client generation in case the body content is not rewinded
1 parent 8d45847 commit da1a969

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HttpClient/Plugin/RequestSignature.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ protected function doHandleRequest(RequestInterface $request, callable $next, ca
4242
'cnonce' => $this->getNonce(),
4343
];
4444

45-
$content = $request->getBody()->getContents();
45+
$content = (string) $request->getBody();
4646
if ($content) {
4747
$params['body'] = $content;
4848
}

0 commit comments

Comments
 (0)