Skip to content
Snippets Groups Projects
Commit ad875763 authored by Dyszczo's avatar Dyszczo
Browse files

Merge branch 'devel' into 'master'

Devel

See merge request !2
parents 779882df c5dab20b
No related branches found
Tags 1.0.1
1 merge request!2Devel
Pipeline #5034 failed with stages
in 4 minutes and 59 seconds
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'
= 1.0.1 - 2019-12-05 =
* Fixed issue with slicing resposne on CurlClient
= 1.0 - 2019-01-31 =
* First release
......@@ -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)];
......
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