From 9880eeed40d120989509a64047d990f2e5e1bf14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 18 Nov 2020 14:37:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Client/Curl.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/HttpServer/Client/Curl.php b/HttpServer/Client/Curl.php index d121e6aa..b01ddd3b 100644 --- a/HttpServer/Client/Curl.php +++ b/HttpServer/Client/Curl.php @@ -64,15 +64,8 @@ class Curl extends ClientAbstracts { [$host, $isHttps, $path] = $this->matchHost($path); - if ($this->isSSL()) { - $host = 'https://' . $host . ':443'; - } else { - $host = 'http://' . $host . ':' . $this->getPort(); - } - $resource = $this->do(curl_init($host . $path), $host . $path, self::POST); - curl_setopt($resource, CURLOPT_SAFE_UPLOAD, true); curl_setopt($resource, CURLOPT_POSTFIELDS, $params); if ($isHttps !== false) {