mirror of
https://github.com/rclone/rclone.git
synced 2025-02-22 05:21:59 +01:00
webdav: add Content-Type to PUT requests - fixes #2664
This commit is contained in:
parent
e8d0a363fc
commit
9959c5f17f
@ -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 New Issue
Block a user