]> git.mxchange.org Git - friendica.git/commit
Allow a GuzzleResponse body to be queried more than once
authorHypolite Petovan <hypolite@mrpetovan.com>
Tue, 24 Aug 2021 15:30:11 +0000 (11:30 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Tue, 24 Aug 2021 15:30:11 +0000 (11:30 -0400)
commit17944c01ea8a9d03dd3b69a00f9c93df3210f85c
tree62ade7523e4b9fd1313382128244659cd7916f8e
parente7fdf3c0c3c25b8a3412fd8e804b8877724a3c63
Allow a GuzzleResponse body to be queried more than once

- Using `StreamInterface->getContents` left the stream index at the end of the stream, which made every subsequent call to `getBody()` return empty string
- Using `StreamInterface->__toString()` magic method correctly seek the stream to the start before reading
src/Network/GuzzleResponse.php