Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion s3/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,10 +399,11 @@ func (b *Bucket) Put(path string, data []byte, contType string, perm ACL, option
}

// PutCopy puts a copy of an object given by the key path into bucket b using b.Path as the target key
func (b *Bucket) PutCopy(path string, perm ACL, options CopyOptions, source string) (*CopyObjectResult, error) {
func (b *Bucket) PutCopy(path string, perm ACL, options CopyOptions, source string, contentType string) (*CopyObjectResult, error) {
headers := map[string][]string{
"x-amz-acl": {string(perm)},
"x-amz-copy-source": {escapePath(source)},
"Content-Type": {contentType},
}
options.addHeaders(headers)
req := &request{
Expand Down