This commit is contained in:
2023-10-27 22:36:05 +08:00
parent 7b14fa075e
commit 43c8f9b8e6
-4
View File
@@ -34,10 +34,6 @@ class CoroutineClient extends ClientAbstracts
if (!str_starts_with($path, '/')) {
$path = '/' . $path;
}
$host = $this->getHost();
if (!preg_match('/(\d{1,3}\.){3}\d{1,3}/', $host)) {
$this->withHost(System::gethostbyname($host))->withAddedHeader('Host', $host);
}
$this->withMethod($method)
->coroutine(
$path,