Skip to content

Commit

Permalink
fix api-version
Browse files Browse the repository at this point in the history
  • Loading branch information
wcy-fdu committed Mar 26, 2024
1 parent 83c6e28 commit ffcbd03
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/azure/storage/workload_identity_credential.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ pub async fn get_workload_identity_token(config: &Config) -> anyhow::Result<Opti
)
.append_pair("client_assertion", token)
.append_pair("grant_type", "client_credentials")
.append_pair(API_VERSION, "2019-06-01")
.finish();

let mut req = Request::builder()
Expand All @@ -54,10 +53,10 @@ pub async fn get_workload_identity_token(config: &Config) -> anyhow::Result<Opti
HeaderValue::from_static("application/x-www-form-urlencoded"),
);

req.headers_mut().insert(
API_VERSION,
HeaderValue::from_static("2019-06-01"),
);
// req.headers_mut().insert(
// API_VERSION,
// HeaderValue::from_static("2019-06-01"),
// );

let res = Client::new().execute(req.try_into()?).await?;
let rsp_status = res.status();
Expand Down

0 comments on commit ffcbd03

Please sign in to comment.