add clear
This commit is contained in:
@@ -449,7 +449,10 @@ class HttpClient
|
|||||||
private function explode($output)
|
private function explode($output)
|
||||||
{
|
{
|
||||||
[$header, $body] = explode("\r\n\r\n", $output, 2);
|
[$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);
|
$header = explode("\r\n", $header);
|
||||||
|
|
||||||
unset($output);
|
unset($output);
|
||||||
|
|||||||
Reference in New Issue
Block a user