From 43c8f9b8e61f3bb25cc4a334f18aa5bc0b87e979 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Fri, 27 Oct 2023 22:36:05 +0800 Subject: [PATCH] eee --- CoroutineClient.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/CoroutineClient.php b/CoroutineClient.php index 7458bd1..e218686 100644 --- a/CoroutineClient.php +++ b/CoroutineClient.php @@ -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,