Skip to content

Commit fd09750

Browse files
authored
Merge pull request #31 from aws-beam/30-error-when-providing-multiple-querystring-params
[#30] Maintain the order of the query parameters
2 parents b3f8a36 + 727872f commit fd09750

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/aws_util.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ encode_query(List) when is_list(List) ->
6363
(KV = {_, V}, Acc) when is_binary(V) ->
6464
[KV | Acc]
6565
end,
66-
KVs = lists:foldl(FoldFun, [], List),
66+
KVs = lists:foldr(FoldFun, [], List),
6767
uri_string:compose_query(KVs);
6868
encode_query(Map) when is_map(Map) ->
6969
encode_query(maps:to_list(Map)).

0 commit comments

Comments
 (0)