diff --git a/src/AsyncClient.php b/src/AsyncClient.php index 604bfbd..7ebf5f1 100644 --- a/src/AsyncClient.php +++ b/src/AsyncClient.php @@ -92,6 +92,7 @@ class AsyncClient extends ClientAbstracts $path = $this->setParams($path, $data); $this->withAddedHeader('Accept', ' text/html,application/xhtml+xml,application/json,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9'); + $this->withAddedHeader('Accept-Encoding', 'gzip, deflate'); $this->withAddedHeader('Content-Length', $this->getData()->getSize()); $this->execute($path, $this->getData()->getContents()); @@ -117,7 +118,7 @@ class AsyncClient extends ClientAbstracts [$header, $body] = explode("\r\n\r\n", $revice); - var_dump($body); + var_dump((string)$body); $header = explode("\r\n", $header); $status = array_shift($header);