Update util.ts
This commit is contained in:
@@ -57,7 +57,8 @@ export const performAwsIamLogin = async (baseUrl: string, identityId: string, re
|
||||
{
|
||||
service: "sts",
|
||||
path: `/?${body}`,
|
||||
region
|
||||
region,
|
||||
host: `sts.${region}.amazonaws.com`
|
||||
},
|
||||
{
|
||||
accessKeyId: creds.accessKeyId,
|
||||
@@ -66,8 +67,6 @@ export const performAwsIamLogin = async (baseUrl: string, identityId: string, re
|
||||
}
|
||||
);
|
||||
|
||||
delete signOpts.headers?.host;
|
||||
delete signOpts.headers?.Host;
|
||||
const headers = {
|
||||
...signOpts.headers
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user