Skip to content

Commit

Permalink
Merge pull request #146 from aws-beam/fix-s3-presign-special-characters
Browse files Browse the repository at this point in the history
Fix s3 presigning of urls when path contains special characters
  • Loading branch information
onno-vos-dev authored Feb 28, 2024
2 parents 0895cdd + 3f0ee5e commit 224e7de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/aws_s3_presigned_url.erl
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ make_presigned_v4_url(Client0, Method, ExpireSeconds, Bucket, Key, Style) ->
Now = calendar:universal_time(),
Options0 = [ {ttl, ExpireSeconds}
, {body_digest, <<"UNSIGNED-PAYLOAD">>}
, {uri_encode_path, false} %% We already encode in build_path/4
],
Options = case SecurityToken of
undefined ->
Expand Down

0 comments on commit 224e7de

Please sign in to comment.