gcs: add support for --header-upload and --header-download #59

This commit is contained in:
Nick Craig-Wood 2020-04-23 11:41:57 +01:00
parent 8e9c25063a
commit b502a74cff

View File

@ -1069,6 +1069,7 @@ func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, op
if !o.fs.opt.BucketPolicyOnly {
insertObject.PredefinedAcl(o.fs.opt.ObjectACL)
}
fs.OpenOptionAddHTTPHeaders(insertObject.Header(), options)
newObject, err = insertObject.Context(ctx).Do()
return shouldRetry(err)
})