From ea6c53796a60539aaac78119496ee029e56d8859 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Tue, 7 Jan 2020 14:29:21 +0800 Subject: [PATCH] add clear --- common/HttpClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/HttpClient.php b/common/HttpClient.php index 5f1cc08..6ba2eea 100644 --- a/common/HttpClient.php +++ b/common/HttpClient.php @@ -262,6 +262,7 @@ class HttpClient if ($this->checkIsIp($host)) { return $host; } + $this->addHeader('Host', $host); return System::gethostbyname($host); } @@ -397,7 +398,6 @@ class HttpClient if (!empty($this->_data)) { $client->setData($this->_data); } - var_dump($this->_data); $client->get($url . '?' . $data); } else if (strtolower($this->method) == self::PUT) { $client->setMethod('PUT');