From d0a6a19c4367f793a92a94b2c7db4b9dd6860330 Mon Sep 17 00:00:00 2001 From: Joe Hosteny Date: Thu, 5 Dec 2024 16:04:08 -0500 Subject: [PATCH] fix: properly accumulate custom headers --- lib/aws/request.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/aws/request.ex b/lib/aws/request.ex index 49d5be0c..e955a588 100644 --- a/lib/aws/request.ex +++ b/lib/aws/request.ex @@ -326,8 +326,8 @@ defmodule AWS.Request do param_value when is_map(param_value) -> headers = - Enum.reduce(param_value, headers, fn {k, v} -> - {header_name <> k, v} + Enum.reduce(param_value, headers, fn {k, v}, acc -> + [{header_name <> k, v}] ++ acc end) params = Map.delete(params, param_name)