add clear

This commit is contained in:
2020-04-03 17:47:22 +08:00
parent 5ee4e994c7
commit 78348ae2f7
+1 -1
View File
@@ -281,7 +281,7 @@ class HttpClient
private function request($url, $data = []) private function request($url, $data = [])
{ {
$data = $this->paramEncode($data); $data = $this->paramEncode($data);
if ($this->use_swoole && $this->isCli()) { if ($this->use_swoole) {
[$url, $host] = $this->parseUrlHost($url); [$url, $host] = $this->parseUrlHost($url);
return $this->coroutine($host, $url, $data); return $this->coroutine($host, $url, $data);
} else { } else {