From 16a04db3cc36a047b8e3dab724afd2d4110e424f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 14 Jan 2021 14:02:25 +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, 3 insertions(+) diff --git a/HttpServer/Client/Curl.php b/HttpServer/Client/Curl.php index 80b9c07e..a1cf7dfe 100644 --- a/HttpServer/Client/Curl.php +++ b/HttpServer/Client/Curl.php @@ -107,6 +107,9 @@ class Curl extends ClientAbstracts curl_setopt($resource, CURLOPT_FAILONERROR, true); curl_setopt($resource, CURLOPT_HTTPHEADER, $this->parseHeaderMat()); + if (defined('CURLOPT_SSL_FALSESTART')) { + curl_setopt($resource, CURLOPT_SSL_FALSESTART, true); + } curl_setopt($resource, CURLOPT_FORBID_REUSE, false); curl_setopt($resource, CURLOPT_FRESH_CONNECT, false);