From 4b0c33b6e953330f993905bea22f450123a91ab2 Mon Sep 17 00:00:00 2001 From: Eric Koleda <88106038+ekoleda-codaio@users.noreply.github.com> Date: Wed, 30 Oct 2024 17:04:38 -0400 Subject: [PATCH] Fix bug with AWS AssumeRole signing (#3093) --- dist/testing/fetcher.js | 5 ++++- testing/fetcher.ts | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/dist/testing/fetcher.js b/dist/testing/fetcher.js index e5907c738f..e95b3ee5c9 100644 --- a/dist/testing/fetcher.js +++ b/dist/testing/fetcher.js @@ -420,7 +420,10 @@ class AuthenticatingFetcher { method, url, service, - headers: headers || {}, + headers: { + ...headers, + host, + }, credentials, }); return { diff --git a/testing/fetcher.ts b/testing/fetcher.ts index cb3ec78dfb..b3d29cc99e 100644 --- a/testing/fetcher.ts +++ b/testing/fetcher.ts @@ -530,7 +530,10 @@ export class AuthenticatingFetcher implements Fetcher { method, url, service, - headers: headers || {}, + headers: { + ...headers, + host, + }, credentials, }); return {