add clear

This commit is contained in:
2020-04-06 02:06:34 +08:00
parent 3f98508539
commit fa4aea6b2c
+1 -2
View File
@@ -460,7 +460,6 @@ class HttpClient
*/
private function coroutine($url, $data = [])
{
var_dump($url);
$client = $this->generate_client($this->host, $url, $data);
if ($client->statusCode < 0) {
throw new \Exception($client->errMsg);
@@ -517,11 +516,11 @@ class HttpClient
*/
private function generate_client($host, $url, $data)
{
var_dump($host, $this->getHostPort(), $url);
$client = new SClient($host, $this->getHostPort(), $this->isSSL);
if (strpos($url, '/') !== 0) {
$url = '/' . $url;
}
var_dump($host, $this->getHostPort(), $url);
$client->set($this->settings());
if (!empty($this->agent)) {
$this->header['User-Agent'] = $this->agent;