pcloud: pass options to rest.Opts for Put and Update

This commit is contained in:
Tim Gallant 2020-03-21 15:04:14 -07:00 committed by Nick Craig-Wood
parent 90bd0eb44c
commit 854c84d0ca

View File

@ -1080,6 +1080,7 @@ func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, op
ContentLength: &size,
Parameters: url.Values{},
TransferEncoding: []string{"identity"}, // pcloud doesn't like chunked encoding
Options: options,
}
leaf = o.fs.opt.Enc.FromStandardName(leaf)
opts.Parameters.Set("filename", leaf)