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..6495d85f2ffa701f6a85d1c815c11daad9872d2e 100644 --- a/src/Curl/CurlClient.php +++ b/src/Curl/CurlClient.php @@ -155,8 +155,8 @@ class CurlClient implements HttpClient { * @return array */ private function extractResponseHeadersAndBody() { - $rawBody = \trim( $this->rawResponse ); - $rawHeaders = \trim( implode( "\r\n", $this->headers ) ); + $rawBody = $this->rawResponse; + $rawHeaders = implode( "\r\n", $this->headers ); return [ $rawHeaders, $rawBody ]; }