Skip to content

Commit

Permalink
Merge pull request #134 from aws-beam/do-not-uri-encode-path-twice
Browse files Browse the repository at this point in the history
Do not uriencode path twice
  • Loading branch information
onno-vos-dev authored Feb 23, 2023
2 parents 07165ea + 8decfe9 commit ce70c84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aws_request.erl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ sign_request(Client, Method, URL, Headers0, Body) ->
undefined -> Headers0;
_ -> [{<<"X-Amz-Security-Token">>, Token}|Headers0]
end,
aws_signature:sign_v4(AccessKeyID, SecretAccessKey, Region, Service, calendar:universal_time(), Method, URL, Headers, Body).
aws_signature:sign_v4(AccessKeyID, SecretAccessKey, Region, Service, calendar:universal_time(), Method, URL, Headers, Body, [{uri_encode_path, false}]).

%% @doc Include additions only if they don't already exist in the provided list.
add_headers([], Headers) ->
Expand Down

0 comments on commit ce70c84

Please sign in to comment.