forked from TrueCloudLab/rclone
gcs: add support for --header-upload and --header-download #59
This commit is contained in:
parent
8e9c25063a
commit
b502a74cff
1 changed files with 1 additions and 0 deletions
|
@ -1069,6 +1069,7 @@ func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, op
|
||||||
if !o.fs.opt.BucketPolicyOnly {
|
if !o.fs.opt.BucketPolicyOnly {
|
||||||
insertObject.PredefinedAcl(o.fs.opt.ObjectACL)
|
insertObject.PredefinedAcl(o.fs.opt.ObjectACL)
|
||||||
}
|
}
|
||||||
|
fs.OpenOptionAddHTTPHeaders(insertObject.Header(), options)
|
||||||
newObject, err = insertObject.Context(ctx).Do()
|
newObject, err = insertObject.Context(ctx).Do()
|
||||||
return shouldRetry(err)
|
return shouldRetry(err)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue