Skip to content

Commit

Permalink
Fix missing url encoding for copy object (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
sethkor authored Oct 15, 2020
1 parent 1f66741 commit c4bfdba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion copy.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ func (cp *BucketCopier) copyObjects() func(object *s3.Object) {
start := time.Now()
copyInput := copyTemplate

copyInput.CopySource = aws.String(cp.source.Host + "/" + *object.Key)
copyInput.CopySource = aws.String(url.QueryEscape(cp.source.Host + "/" + *object.Key))

if len(cp.source.Path) == 0 {
copyInput.Key = object.Key
Expand Down

0 comments on commit c4bfdba

Please sign in to comment.