feat: update ymd

This commit is contained in:
2023-09-29 15:18:39 +08:00
parent ea8a8f872f
commit 5c677455ba

View File

@@ -51,7 +51,6 @@ fn add_common_headers(header: &mut BTreeMap<String, String>, request: &Request)
}
}
let ymd = "yyyymmdd";
let query = BTreeMap::new();
if let Some(access_key) = &request.access_key {
@@ -63,7 +62,7 @@ fn add_common_headers(header: &mut BTreeMap<String, String>, request: &Request)
let signing_key = get_signing_key(
&request.sign_algorithm,
&access_key.access_key_secret,
ymd,
&ymd,
&request.region,
&request.product,
);
@@ -74,7 +73,7 @@ fn add_common_headers(header: &mut BTreeMap<String, String>, request: &Request)
let authorization = get_authorization(
&request.sign_algorithm,
&derived_access_key,
ymd,
&ymd,
&request.region,
&request.product,
&request.pathname,