From 90bd0eb44c6f06e24a23340a243b76d52d408126 Mon Sep 17 00:00:00 2001 From: Tim Gallant Date: Sat, 21 Mar 2020 15:03:07 -0700 Subject: [PATCH] webdav: pass options to rest.Opts for Put and Update --- backend/webdav/webdav.go | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/webdav/webdav.go b/backend/webdav/webdav.go index 83fe1500f..3302df53a 100644 --- a/backend/webdav/webdav.go +++ b/backend/webdav/webdav.go @@ -1135,6 +1135,7 @@ func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, op NoResponse: true, ContentLength: &size, // FIXME this isn't necessary with owncloud - See https://github.com/nextcloud/nextcloud-snap/issues/365 ContentType: fs.MimeType(ctx, src), + Options: options, } if o.fs.useOCMtime || o.fs.hasMD5 || o.fs.hasSHA1 { opts.ExtraHeaders = map[string]string{}