mirror of
https://github.com/rclone/rclone.git
synced 2025-03-14 00:16:24 +08:00

The X-Amz-Copy-Source takes a path. url.QueryEscape escapes spaces with a plus sign while rest.URLEscape (which mimics the url.PathEscape available from go 1.8) uses '%20' This works around an issue when copying objects with spaces in their key on DigitalOcean Spaces.