From dcc5e67f0adb706e141e5d2d7305e2c69cf9fb48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Tue, 11 Jan 2022 16:21:29 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E6=94=B9=E5=90=8D"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit fdf58326 --- CurlClient.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CurlClient.php b/CurlClient.php index a3b570a..e2185d9 100644 --- a/CurlClient.php +++ b/CurlClient.php @@ -45,12 +45,11 @@ class CurlClient extends ClientAbstracts private function getCurlHandler($path, $method, $params): void { [$host, $isHttps, $path] = $this->matchHost($path); + var_dump($host, $isHttps, $path); $host = $isHttps ? 'https://' . $host : 'http://' . $host; if ($this->getPort() != 443 && $this->getPort() != 80) { $host .= ':' . $this->getPort(); - - var_dump($this->getPort()); } $this->do(curl_init($host . $path), $host . $path, $method); if ($isHttps !== FALSE) {