webdav: add Content-Type to PUT requests - fixes #2664

This commit is contained in:
Nick Craig-Wood 2018-10-18 13:18:24 +01:00
parent e8d0a363fc
commit 9959c5f17f
1 changed files with 1 additions and 0 deletions

View File

@ -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{