From 23f85ef5f04741661b98ca84d4f8e73c66e511b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Fri, 24 Dec 2021 14:32:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/AsyncClient.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/AsyncClient.php b/src/AsyncClient.php index 2e8f7b1..0f1350d 100644 --- a/src/AsyncClient.php +++ b/src/AsyncClient.php @@ -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);