mirror of
https://github.com/rclone/rclone.git
synced 2025-02-23 05:51:36 +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,
|
Body: in,
|
||||||
NoResponse: true,
|
NoResponse: true,
|
||||||
ContentLength: &size, // FIXME this isn't necessary with owncloud - See https://github.com/nextcloud/nextcloud-snap/issues/365
|
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 {
|
if o.fs.useOCMtime {
|
||||||
opts.ExtraHeaders = map[string]string{
|
opts.ExtraHeaders = map[string]string{
|
||||||
|
Loading…
Reference in New Issue
Block a user