This commit is contained in:
2021-12-23 18:01:07 +08:00
parent 2baeb20b8d
commit f48b6bd5d2
+1 -4
View File
@@ -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);