From 156ec358ac0b6052a064d0bf8e0db9de684b7761 Mon Sep 17 00:00:00 2001 From: wangyuting Date: Wed, 3 Jan 2024 09:55:07 +0800 Subject: [PATCH] * Fix curl openssl bug. the bug #40227. --- module/common/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/common/model.php b/module/common/model.php index 5340fac145..690b9256e7 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -1799,7 +1799,7 @@ class commonModel extends model } $curl = curl_init(); - curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); + curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($curl, CURLOPT_USERAGENT, 'ZenTao PMS ' . $app->config->version); curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, $timeout); curl_setopt($curl, CURLOPT_TIMEOUT, $timeout);