curl_req->curl

This commit is contained in:
qkqpttgf
2021-01-11 10:04:56 +08:00
committed by GitHub
parent b8c4cc1312
commit 372a42bc05
+1 -1
View File
@@ -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)