add clear
This commit is contained in:
@@ -338,14 +338,8 @@ class HttpClient
|
|||||||
private function cutRequestUrl($url)
|
private function cutRequestUrl($url)
|
||||||
{
|
{
|
||||||
$url = $this->replaceHost($url);
|
$url = $this->replaceHost($url);
|
||||||
|
|
||||||
var_dump($url);
|
|
||||||
|
|
||||||
$explode = explode('/', $url);
|
$explode = explode('/', $url);
|
||||||
$first = array_shift($explode);
|
$first = array_shift($explode);
|
||||||
|
|
||||||
var_dump($first, $url);
|
|
||||||
|
|
||||||
if (strpos($first, ':') !== false) {
|
if (strpos($first, ':') !== false) {
|
||||||
[$first, $this->port] = explode(':', $first);
|
[$first, $this->port] = explode(':', $first);
|
||||||
if ($this->port !== 443) {
|
if ($this->port !== 443) {
|
||||||
@@ -353,6 +347,8 @@ class HttpClient
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$url = '/' . implode('/', $explode);
|
$url = '/' . implode('/', $explode);
|
||||||
|
|
||||||
|
var_dump($first, $url);
|
||||||
return [$first, $url];
|
return [$first, $url];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user