mirror of
https://github.com/versity/versitygw.git
synced 2026-04-22 21:50:29 +00:00
encodeURIComponent encodes the trailing slash as %2F, producing a path like /bucket/folder%2F. S3 servers (e.g. Ceph) reject this with a SignatureDoesNotMatch error because the canonical URI used for signing differs from what the server reconstructs. encodeS3Key encodes each path segment individually, leaving slashes as literal /, which is consistent with all other object-key operations in the API client. Fixes #2029