forked from TrueCloudLab/rclone
webdav: pass options to rest.Opts for Put and Update
This commit is contained in:
parent
3130f870bb
commit
90bd0eb44c
1 changed files with 1 additions and 0 deletions
|
@ -1135,6 +1135,7 @@ func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, op
|
||||||
NoResponse: true,
|
NoResponse: true,
|
||||||
ContentLength: &size, // FIXME this isn't necessary with owncloud - See https://github.com/nextcloud/nextcloud-snap/issues/365
|
ContentLength: &size, // FIXME this isn't necessary with owncloud - See https://github.com/nextcloud/nextcloud-snap/issues/365
|
||||||
ContentType: fs.MimeType(ctx, src),
|
ContentType: fs.MimeType(ctx, src),
|
||||||
|
Options: options,
|
||||||
}
|
}
|
||||||
if o.fs.useOCMtime || o.fs.hasMD5 || o.fs.hasSHA1 {
|
if o.fs.useOCMtime || o.fs.hasMD5 || o.fs.hasSHA1 {
|
||||||
opts.ExtraHeaders = map[string]string{}
|
opts.ExtraHeaders = map[string]string{}
|
||||||
|
|
Loading…
Reference in a new issue