add clear
This commit is contained in:
@@ -253,7 +253,6 @@ class HttpClient
|
|||||||
$this->isSSL = false;
|
$this->isSSL = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var_dump($first, $this->port);
|
|
||||||
if (preg_match('/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/', $first)) {
|
if (preg_match('/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/', $first)) {
|
||||||
return $first;
|
return $first;
|
||||||
}
|
}
|
||||||
@@ -340,6 +339,7 @@ class HttpClient
|
|||||||
*/
|
*/
|
||||||
private function generate_client($host, $url, $data)
|
private function generate_client($host, $url, $data)
|
||||||
{
|
{
|
||||||
|
var_dump($host, $this->getHostPort(), $this->isSSL);
|
||||||
$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;
|
||||||
|
|||||||
Reference in New Issue
Block a user