Skip to content

Commit 8e2635b

Browse files
authored
fmt.Sprintf missing last arg (nedpals#36)
1 parent 0602619 commit 8e2635b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ func (f *file) Copy(fromPath, toPath string) FileResponse {
486486
"destintionKey": toPath,
487487
})
488488

489-
reqURL := fmt.Sprintf("%s/%s/object/copy", f.storage.client.BaseURL, StorageEndpoint, f.BucketId)
489+
reqURL := fmt.Sprintf("%s/%s/object/copy/%s", f.storage.client.BaseURL, StorageEndpoint, f.BucketId)
490490
req, err := http.NewRequest(http.MethodPost, reqURL, bytes.NewBuffer(_json))
491491
if err != nil {
492492
panic(err)

0 commit comments

Comments
 (0)