add clear
This commit is contained in:
@@ -278,7 +278,7 @@ class HttpClient
|
||||
private function request($url, $data = [])
|
||||
{
|
||||
$data = $this->paramEncode($data);
|
||||
if ($this->use_swoole || $this->isCli()) {
|
||||
if ($this->use_swoole && $this->isCli()) {
|
||||
[$url, $host] = $this->parseUrlHost($url);
|
||||
return $this->coroutine($host, $url, $data);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user