Skip to content

Commit

Permalink
Merge pull request #203 from thoroai/hotfix/properly-accumulate-user-…
Browse files Browse the repository at this point in the history
…metadata

fix: properly accumulate custom headers
  • Loading branch information
onno-vos-dev authored Dec 5, 2024
2 parents 56819d7 + d0a6a19 commit 53578f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/aws/request.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 53578f2

Please sign in to comment.