From 91878579b60af851c9ff314150089714018a2d25 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Fri, 3 Jan 2020 15:36:18 +0800 Subject: [PATCH] add clear --- common/HttpClient.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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);