add clear
This commit is contained in:
@@ -449,7 +449,9 @@ class HttpClient
|
||||
private function explode($output)
|
||||
{
|
||||
[$header, $body] = explode("\r\n\r\n", $output, 2);
|
||||
if (strpos($body, "\r\n\r\n") !== false) {
|
||||
if ($header == 'HTTP/1.1 100 Continue') {
|
||||
[$header, $body] = explode("\r\n\r\n", $body, 2);
|
||||
} else if (strpos($body, "\r\n\r\n") !== false) {
|
||||
[$header, $body] = explode("\r\n\r\n", $body, 2);
|
||||
}
|
||||
$header = explode("\r\n", $header);
|
||||
|
||||
Reference in New Issue
Block a user