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);