mirror of
https://github.com/rclone/rclone
synced 2024-11-29 07:55:12 +01:00
pcloud: pass options to rest.Opts for Put and Update
This commit is contained in:
parent
90bd0eb44c
commit
854c84d0ca
@ -1080,6 +1080,7 @@ func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, op
|
|||||||
ContentLength: &size,
|
ContentLength: &size,
|
||||||
Parameters: url.Values{},
|
Parameters: url.Values{},
|
||||||
TransferEncoding: []string{"identity"}, // pcloud doesn't like chunked encoding
|
TransferEncoding: []string{"identity"}, // pcloud doesn't like chunked encoding
|
||||||
|
Options: options,
|
||||||
}
|
}
|
||||||
leaf = o.fs.opt.Enc.FromStandardName(leaf)
|
leaf = o.fs.opt.Enc.FromStandardName(leaf)
|
||||||
opts.Parameters.Set("filename", leaf)
|
opts.Parameters.Set("filename", leaf)
|
||||||
|
Loading…
Reference in New Issue
Block a user