add clear
This commit is contained in:
@@ -380,11 +380,11 @@ class HttpClient
|
|||||||
if ($this->isHttp($url) || $this->isHttps($url)) {
|
if ($this->isHttp($url) || $this->isHttps($url)) {
|
||||||
return $this->curl($url, $data);
|
return $this->curl($url, $data);
|
||||||
}
|
}
|
||||||
|
var_dump($this->host,$url);
|
||||||
$url = $this->matchHost(ltrim($url, '/'));
|
$url = $this->matchHost(ltrim($url, '/'));
|
||||||
if (!empty($this->port)) {
|
if (!empty($this->port)) {
|
||||||
$this->host .= ':' . $this->port;
|
$this->host .= ':' . $this->port;
|
||||||
}
|
}
|
||||||
var_dump($this->host);
|
|
||||||
if ($this->isSSL) {
|
if ($this->isSSL) {
|
||||||
return $this->curl('https://' . $this->host . '/' . $url, $data);
|
return $this->curl('https://' . $this->host . '/' . $url, $data);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user