add clear

This commit is contained in:
as2252258@163.com
2020-03-16 19:25:29 +08:00
parent 937a5ae22c
commit d32b6e85ec
+1
View File
@@ -393,6 +393,7 @@ class HttpClient
*/ */
private function generate_client($host, $url, $data) private function generate_client($host, $url, $data)
{ {
echo $host . ':' . $url . PHP_EOL;
$client = new SClient($host, $this->getHostPort(), $this->isSSL); $client = new SClient($host, $this->getHostPort(), $this->isSSL);
if (!empty($this->agent)) { if (!empty($this->agent)) {
$this->header['User-Agent'] = $this->agent; $this->header['User-Agent'] = $this->agent;