This commit is contained in:
2021-12-24 14:32:49 +08:00
parent 372dbbb424
commit 23f85ef5f0
-10
View File
@@ -116,16 +116,6 @@ class AsyncClient extends ClientAbstracts
$this->client->send(implode("\r\n", $array) . "\r\n\r\n" . $content);
$revice = $this->client->recv();
if (!str_ends_with($revice, "\r\n\r\n")) {
while (true) {
$next = $this->client->recv();
$revice .= $next;
if (str_ends_with($next, "\r\n\r\n")) {
break;
}
}
}
[$header, $body] = explode("\r\n\r\n", $revice);
$header = explode("\r\n", $header);