diff --git a/src/aws/credential.rs b/src/aws/credential.rs index d45df277..0d2051e4 100644 --- a/src/aws/credential.rs +++ b/src/aws/credential.rs @@ -298,12 +298,12 @@ impl Loader { let mut req = self .client .post(&url) - .header( - http::header::CONTENT_TYPE.as_str(), - "application/x-www-form-urlencoded", - ) + // .header( + // http::header::CONTENT_TYPE.as_str(), + // "application/x-www-form-urlencoded", + // ) .build()?; - signer.sign_query(&mut req, Duration::from_secs(3600), &cred)?; + signer.sign(&mut req, &cred)?; debug!("request to AWS STS Services: {:?}", req); let resp = self.client.execute(req).await?;