Skip to content
Snippets Groups Projects
Commit b157e35e authored by Piotr Potrebka's avatar Piotr Potrebka
Browse files

Merge branch 'revert-6772406f' into 'master'

fix: body response

See merge request !9
parents 6772406f 654fd463
No related branches found
No related tags found
Loading
Pipeline #426497 failed with stages
in 28 seconds
= 1.0.5 - 2024-10-07 =
* Fixed body response
= 1.0.4 - 2020-12-09 =
* Fixed issue with body
......
......@@ -155,8 +155,8 @@ class CurlClient implements HttpClient {
* @return array
*/
private function extractResponseHeadersAndBody() {
$rawBody = $this->rawResponse;
$rawHeaders = implode( "\r\n", $this->headers );
$rawBody = \trim( $this->rawResponse );
$rawHeaders = \trim( implode( "\r\n", $this->headers ) );
return [ $rawHeaders, $rawBody ];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment