This commit is contained in:
2020-11-14 02:18:27 +08:00
parent 02997c3476
commit e9d9b305eb
+1 -2
View File
@@ -195,7 +195,6 @@ class HttpClient
*/ */
public function setHost(string $host) public function setHost(string $host)
{ {
var_dump($host);
$this->host = $this->replaceHost($host); $this->host = $this->replaceHost($host);
$match_quest = '/^[a-zA-Z\-]+(\.[a-zA-Z\-])+/'; $match_quest = '/^[a-zA-Z\-]+(\.[a-zA-Z\-])+/';
if (preg_match($match_quest, $this->host)) { if (preg_match($match_quest, $this->host)) {
@@ -365,7 +364,6 @@ class HttpClient
} }
if (!$this->checkIsIp($this->host) && Coroutine::getuid() > 0) { if (!$this->checkIsIp($this->host) && Coroutine::getuid() > 0) {
var_dump($this->host);
$this->host = System::gethostbyname($this->host); $this->host = System::gethostbyname($this->host);
} }
@@ -537,6 +535,7 @@ class HttpClient
} }
if (!empty($this->_data)) { if (!empty($this->_data)) {
var_dump($this->_data);
$client->setData($this->_data); $client->setData($this->_data);
} }
$client->execute($url); $client->execute($url);