add clear
This commit is contained in:
@@ -338,12 +338,12 @@ class HttpClient
|
|||||||
private function coroutine($ip, $url, $data = [])
|
private function coroutine($ip, $url, $data = [])
|
||||||
{
|
{
|
||||||
$client = $this->generate_client($ip, $url, $data);
|
$client = $this->generate_client($ip, $url, $data);
|
||||||
|
$client->close();
|
||||||
if ($client->statusCode < 0) {
|
if ($client->statusCode < 0) {
|
||||||
throw new \Exception($client->errMsg);
|
throw new \Exception($client->errMsg);
|
||||||
}
|
}
|
||||||
|
|
||||||
$body = $client->body;
|
$body = $client->body;
|
||||||
$client->close();
|
|
||||||
|
|
||||||
$header = $client->getHeaders();
|
$header = $client->getHeaders();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user