curl_req->curl

pull/187/head
qkqpttgf 2021-01-11 10:04:56 +08:00 committed by GitHub
parent b8c4cc1312
commit 372a42bc05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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)