3
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user