From 196cb42e6e3fa495663ac9e94506fa8b35d1916f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Fri, 24 Dec 2021 11:44:08 +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, 3 insertions(+), 2 deletions(-) diff --git a/src/AsyncClient.php b/src/AsyncClient.php index f39acb9..d0dfa6d 100644 --- a/src/AsyncClient.php +++ b/src/AsyncClient.php @@ -114,11 +114,12 @@ class AsyncClient extends ClientAbstracts } } $this->client->send(implode("\r\n", $array) . "\r\n\r\n" . $content); - $revice = gzdecode($this->client->recv()); - var_dump(implode("\r\n", $array) . "\r\n\r\n" . $revice); + $revice = $this->client->recv(); [$header, $body] = explode("\r\n\r\n", $revice); + var_dump($body); + $header = explode("\r\n", $header); $status = array_shift($header);