From 48da0a22bf6b99c01fbbb8bbaca032f2d6f96fb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 13 Nov 2020 16:14:23 +0800 Subject: [PATCH] add clear --- wchat/common/HttpClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wchat/common/HttpClient.php b/wchat/common/HttpClient.php index af0a95c..e778df9 100644 --- a/wchat/common/HttpClient.php +++ b/wchat/common/HttpClient.php @@ -195,8 +195,8 @@ class HttpClient */ public function setHost(string $host) { + var_dump($host); $this->host = $this->replaceHost($host); - var_dump($this->host); $match_quest = '/^[a-zA-Z\-]+(\.[a-zA-Z\-])+/'; if (preg_match($match_quest, $this->host)) { $this->addHeader('Host', $this->host);