Skip to content
Snippets Groups Projects

fix: body response

Merged Piotr Potrebka requested to merge revert-6772406f into master
2 files
+ 2
5
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 2
2
@@ -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 ];
}
Loading