diff --git a/common/HttpClient.php b/common/HttpClient.php index a9350c5..aeb4547 100644 --- a/common/HttpClient.php +++ b/common/HttpClient.php @@ -449,7 +449,10 @@ class HttpClient private function explode($output) { [$header, $body] = explode("\r\n\r\n", $output, 2); - var_dump($header, $output); + if (strpos($body, "\r\n\r\n") !== false) { + [$header, $body] = explode("\r\n\r\n", $body, 2); + } + $header = explode("\r\n", $header); unset($output);