add clear

This commit is contained in:
as2252258@163.com
2020-01-03 15:36:18 +08:00
parent 18d58c7182
commit 91878579b6
+4 -1
View File
@@ -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);