webdav: add Content-Type to PUT requests - fixes #2664
This commit is contained in:
parent
e8d0a363fc
commit
9959c5f17f
1 changed files with 1 additions and 0 deletions
|
@ -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{
|
||||
|
|
Loading…
Reference in a new issue