add clear

This commit is contained in:
2020-04-03 17:43:45 +08:00
parent 07a00bd4b0
commit cb25fce004
+1 -1
View File
@@ -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 {