add clear

This commit is contained in:
2020-03-31 15:08:37 +08:00
parent b4a6ed706f
commit 30bb2cf1c5
+1 -1
View File
@@ -338,12 +338,12 @@ class HttpClient
private function coroutine($ip, $url, $data = [])
{
$client = $this->generate_client($ip, $url, $data);
$client->close();
if ($client->statusCode < 0) {
throw new \Exception($client->errMsg);
}
$body = $client->body;
$client->close();
$header = $client->getHeaders();