From 5c96ad399ead16c5a84f7e274fcc6e1b1488e776 Mon Sep 17 00:00:00 2001 From: Daniel Hougaard Date: Mon, 23 Sep 2024 23:55:42 +0400 Subject: [PATCH] Update util.ts --- src/custom/util.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/custom/util.ts b/src/custom/util.ts index b194de0..e6a1725 100644 --- a/src/custom/util.ts +++ b/src/custom/util.ts @@ -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 };