add clear
This commit is contained in:
@@ -518,6 +518,9 @@ class HttpClient
|
|||||||
{
|
{
|
||||||
var_dump($host, $this->getHostPort(), $url);
|
var_dump($host, $this->getHostPort(), $url);
|
||||||
$client = new SClient($host, $this->getHostPort(), $this->isSSL);
|
$client = new SClient($host, $this->getHostPort(), $this->isSSL);
|
||||||
|
if (strpos($url, '/') !== 0) {
|
||||||
|
$url = '/' . $url;
|
||||||
|
}
|
||||||
$client->set($this->settings());
|
$client->set($this->settings());
|
||||||
if (!empty($this->agent)) {
|
if (!empty($this->agent)) {
|
||||||
$this->header['User-Agent'] = $this->agent;
|
$this->header['User-Agent'] = $this->agent;
|
||||||
|
|||||||
Reference in New Issue
Block a user