Skip to content

Commit

Permalink
curl_req->curl
Browse files Browse the repository at this point in the history
  • Loading branch information
qkqpttgf authored Jan 11, 2021
1 parent b8c4cc1 commit 372a42b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/TencentSCF_file.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 372a42b

Please sign in to comment.