This commit is contained in:
2023-08-18 16:37:47 +08:00
parent ad8b20723b
commit 57337cbe16
2 changed files with 1 additions and 6 deletions
-4
View File
@@ -331,10 +331,6 @@ abstract class ClientAbstracts implements IClient
protected function withHost(string $host): static
{
$this->host = $host;
if (Context::inCoroutine() && !preg_match('/(\d{1,3}\.){3}\d{1,3}/', $host)) {
$this->host = System::gethostbyname($host);
$this->withAddedHeader('Host', $host);
}
return $this;
}