Skip to content

Commit

Permalink
#104754 Текст ошибок в клиентах
Browse files Browse the repository at this point in the history
  • Loading branch information
setopt committed Apr 7, 2023
1 parent f646ad1 commit 15b1e68
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/BodySummarizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public function summarize(MessageInterface $message): ?string
{
if ($message->getBody() instanceof Stream) {
$message = $message->withBody(new MultibyteStream($message->getBody()));
$message->getBody()->rewind();
}

return (new GuzzleBodySummarizer($this->truncateAt))->summarize($message);
Expand Down

0 comments on commit 15b1e68

Please sign in to comment.