Update util.ts

This commit is contained in:
Daniel Hougaard
2024-09-23 23:55:42 +04:00
parent 217c63c4e9
commit 5c96ad399e

View File

@@ -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
};