From 06868cfff29bde840ff1138b31b435ee9be4dbea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 18 Nov 2020 11:51:27 +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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/HttpServer/Client/Curl.php b/HttpServer/Client/Curl.php index 8f068ec6..240f6e6f 100644 --- a/HttpServer/Client/Curl.php +++ b/HttpServer/Client/Curl.php @@ -63,11 +63,10 @@ class Curl extends ClientAbstracts [$host, $isHttps, $path] = $this->matchHost($path); $resource = $this->do(curl_init($host . $path), $host . $path, self::POST); - curl_setopt($resource, CURLOPT_POST, 1); curl_setopt($resource, CURLOPT_RETURNTRANSFER, 1); curl_setopt($resource, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($resource, CURLOPT_SSL_VERIFYHOST, false); - @curl_setopt($resource, CURLOPT_POSTFIELDS, $params); + curl_setopt($resource, CURLOPT_POSTFIELDS, $params); if ($isHttps !== false) { return $this->execute($this->curlHandlerSslSet($resource));