From a3934a0a44970c11f7a171b565245f8de766294a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 18 Nov 2020 14:26:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Client/ClientAbstracts.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/HttpServer/Client/ClientAbstracts.php b/HttpServer/Client/ClientAbstracts.php index e1a30d59..3bd164ca 100644 --- a/HttpServer/Client/ClientAbstracts.php +++ b/HttpServer/Client/ClientAbstracts.php @@ -182,12 +182,12 @@ abstract class ClientAbstracts extends Component implements IClient */ public function setHost(string $host): void { - if (!preg_match('/(\d{1,3}\.){4}/', $host . '.')) { - $this->addHeader('Host', $host); - $this->host = System::gethostbyname($host); - } else { - $this->host = $host; - } + $this->host = $host; +// if (!preg_match('/(\d{1,3}\.){4}/', $host . '.')) { +// $this->addHeader('Host', $host); +// $this->host = System::gethostbyname($host); +// } else { +// } } /**