From 9959c5f17f0691d9aeed79650d4872ba679f247b Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Thu, 18 Oct 2018 13:18:24 +0100 Subject: [PATCH] webdav: add Content-Type to PUT requests - fixes #2664 --- backend/webdav/webdav.go | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/webdav/webdav.go b/backend/webdav/webdav.go index 9ba4839a3..be0423954 100644 --- a/backend/webdav/webdav.go +++ b/backend/webdav/webdav.go @@ -968,6 +968,7 @@ func (o *Object) Update(in io.Reader, src fs.ObjectInfo, options ...fs.OpenOptio Body: in, NoResponse: true, ContentLength: &size, // FIXME this isn't necessary with owncloud - See https://github.com/nextcloud/nextcloud-snap/issues/365 + ContentType: fs.MimeType(src), } if o.fs.useOCMtime { opts.ExtraHeaders = map[string]string{