add clear
This commit is contained in:
@@ -282,9 +282,7 @@ class HttpClient
|
||||
{
|
||||
$data = $this->paramEncode($data);
|
||||
if ($this->use_swoole) {
|
||||
$url = $this->matchHost($url);
|
||||
var_dump($this->host, $url);
|
||||
return $this->coroutine($this->host, $url, $data);
|
||||
return $this->coroutine($this->host, $this->matchHost($url), $data);
|
||||
} else {
|
||||
return $this->useCurl($url, $data);
|
||||
}
|
||||
@@ -521,7 +519,6 @@ class HttpClient
|
||||
{
|
||||
var_dump($host, $this->getHostPort(), $this->isSSL, $url);
|
||||
$client = new SClient($host, $this->getHostPort(), $this->isSSL);
|
||||
|
||||
$client->set($this->settings());
|
||||
if (!empty($this->agent)) {
|
||||
$this->header['User-Agent'] = $this->agent;
|
||||
|
||||
Reference in New Issue
Block a user