diff --git a/src/interceptor.ts b/src/interceptor.ts index 5ca59370..988faa7c 100644 --- a/src/interceptor.ts +++ b/src/interceptor.ts @@ -130,7 +130,8 @@ export const aws4Interceptor = ({ } const { host, pathname, search } = new URL(url); - const { data, headers, method } = config; + const { data, method } = config; + const headers = new AxiosHeaders(config.headers); const transformRequest = getTransformer(config);