Skip to content

Commit

Permalink
Merge pull request #6 from slejnej/patch-1
Browse files Browse the repository at this point in the history
Update ApiLoggerMiddleware.php
  • Loading branch information
nixilla authored Mar 29, 2021
2 parents c6c68eb + b9a0275 commit da64e39
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Middleware/ApiLoggerMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ public function handleResponse(RequestInterface $request, ResponseInterface $res
$response->getBody()->getContents()
);

/**
* need to rewind the contents so it can be retrieved later!!!
*/
$response->getBody()->rewind();

return $next($request, $response);
}
}

0 comments on commit da64e39

Please sign in to comment.