add clear
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user