From 372a42bc05afbe4f94b4772dd8e9c998e810fcbf Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Mon, 11 Jan 2021 10:04:56 +0800 Subject: [PATCH] curl_req->curl --- platform/TencentSCF_file.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/TencentSCF_file.php b/platform/TencentSCF_file.php index f16e3fb..2252316 100644 --- a/platform/TencentSCF_file.php +++ b/platform/TencentSCF_file.php @@ -547,7 +547,7 @@ function updateProgram($function_name, $Region, $Namespace, $SecretId, $SecretKe $headers['X-TC-Timestamp'] = $timestamp; $headers['X-TC-Version'] = $version; $headers['X-TC-Region'] = $region; - return curl_request('https://'.$host, $payload, $headers)['body']; + return curl('POST', 'https://'.$host, $payload, $headers)['body']; } function api_error($response)