diff --git a/changelog.txt b/changelog.txt index bac951e2ac1a67f26e0bac3d6c2b268de7df6507..3e87b0d928a7b74b228c4de397b4323254a87444 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,6 @@ += 1.0.5 - 2024-10-07 = +* Fixed body response + = 1.0.4 - 2020-12-09 = * Fixed issue with body diff --git a/src/Curl/CurlClient.php b/src/Curl/CurlClient.php index ace05988d1d6f783d2ec7577a6f00bdef4b3006d..e9e8092e20b62a92b345ddebadb9d6bd83f4cc54 100644 --- a/src/Curl/CurlClient.php +++ b/src/Curl/CurlClient.php @@ -155,7 +155,7 @@ class CurlClient implements HttpClient { * @return array */ private function extractResponseHeadersAndBody() { - $rawBody = \trim( $this->rawResponse ); + $rawBody = $this->rawResponse; $rawHeaders = \trim( implode( "\r\n", $this->headers ) ); return [ $rawHeaders, $rawBody ];