From b8c4cc1312dbe8e3b69c68c05479420fb0d1ff6b Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Mon, 11 Jan 2021 10:03:54 +0800 Subject: [PATCH] curl_re->curl --- platform/HuaweiFG_file.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/HuaweiFG_file.php b/platform/HuaweiFG_file.php index b2c406e..f684e94 100644 --- a/platform/HuaweiFG_file.php +++ b/platform/HuaweiFG_file.php @@ -348,7 +348,7 @@ function getfunctioncode($HW_urn, $HW_key, $HW_secret) ' . '/' . $bucket . '/' . $path; $signature = base64_encode(hash_hmac('sha1', $StringToSign, $HW_secret, true)); - $response = curl_request($url, false, [ 'Authorization' => 'OBS ' . $HW_key . ':' . $signature, 'x-obs-date' => $date, 'Content-Type' => '' ]); + $response = curl('GET', $url, false, [ 'Authorization' => 'OBS ' . $HW_key . ':' . $signature, 'x-obs-date' => $date, 'Content-Type' => '' ]); //if ($response['stat']==200) return $response['body']; if ($response['stat']==0) return json_encode( [ 'error_code' => 'Network', 'error_msg' => 'Network error in getting code.' ] ); else return $response['body'];