Skip to content

Commit

Permalink
Merge pull request #2 from ensi-platform/task-104754
Browse files Browse the repository at this point in the history
#104754 Текст ошибок в клиентах
  • Loading branch information
MsNatali authored Apr 7, 2023
2 parents f646ad1 + 15b1e68 commit 822b174
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 822b174

Please sign in to comment.