From f48b6bd5d26d632f332778d0459accb48c9e5b1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Thu, 23 Dec 2021 18:01:07 +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 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/AsyncClient.php b/src/AsyncClient.php index 7b5fc25..351db74 100644 --- a/src/AsyncClient.php +++ b/src/AsyncClient.php @@ -113,15 +113,12 @@ class AsyncClient extends ClientAbstracts $array[] = sprintf('%s: %s', $key, $value); } } - $array = implode("\r\n", $array) . "\r\n\r\n"; - $this->client->send($array . $content); - + $this->client->send(implode("\r\n", $array) . "\r\n\r\n" . $content); $revice = $this->client->recv(); [$header, $body] = explode("\r\n\r\n", $revice); $header = explode("\r\n", $header); - $status = array_shift($header); $this->setBody($body);