From 98723bcd4f66b1b0704a5515bb958bb1fdbc9a58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 13 Nov 2020 16:07:21 +0800 Subject: [PATCH] add clear --- wchat/common/HttpClient.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wchat/common/HttpClient.php b/wchat/common/HttpClient.php index cc37330..af0a95c 100644 --- a/wchat/common/HttpClient.php +++ b/wchat/common/HttpClient.php @@ -196,6 +196,7 @@ class HttpClient public function setHost(string $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);