diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1a5f56daaec42688a71923509bb81e464e0b95e4..38447e9e09d3e045220f8589039a98f7368dba3b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,9 @@ variables: DISABLE_FUNCTIONAL: 1 DISABLE_ACCEPTANCE: 1 + DISABLE_PHP_5_5: 1 + DISABLE_CODECEPTION: 1 + DISABLE_INTEGRATION_TESTS: 1 IS_LIBRARY: 1 include: 'https://gitlab.com/wpdesk/gitlab-ci/raw/master/gitlab-ci-1.2.yml' diff --git a/changelog.txt b/changelog.txt index 03dc5509a4b06623a6e810075e831cf3beb91021..bd0582adf9871f41f340f8b26cc83848ee376bef 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,2 +1,5 @@ += 1.0.1 - 2019-12-05 = +* Fixed issue with slicing resposne on CurlClient + = 1.0 - 2019-01-31 = * First release diff --git a/src/Curl/CurlClient.php b/src/Curl/CurlClient.php index 704ad51cdeb8290032abfdb1581f98df5731bd8b..9d992e82b4796003aa3cd360aaf9fbcfd18bf6e3 100644 --- a/src/Curl/CurlClient.php +++ b/src/Curl/CurlClient.php @@ -158,7 +158,7 @@ class CurlClient implements HttpClient */ private function extractResponseHeadersAndBody() { - $parts = explode("\r\n\r\n", $this->rawResponse); + $parts = explode("\r\n\r\n", $this->rawResponse, 2 ); $rawBody = array_pop($parts); $rawHeaders = implode("\r\n\r\n", $parts); return [trim($rawHeaders), trim($rawBody)];