rclone/cmd/serve
Nick Craig-Wood f4d822626e serve webdav: fix incorrect Content-Type immediately after upload
Before this change, if the Content-Type for an object was read
immediately after upload (before the object had been uploaded to the
backing store) then the Content-Type would be returned incorrectly.

This error would be more likely with `--vfs-cache-mode full` and
`writes` but may have been possible with the other
`--vfs-cache-mode`s.

This fixes the problem by always returning a sensible guess at the
content type - the same guess we would use for uploading the object.

Fixes #6433
2022-09-12 12:37:47 +01:00
..
dlna build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
docker all: fix spelling across the project 2022-08-30 11:16:26 +02:00
ftp all: fix spelling across the project 2022-08-30 11:16:26 +02:00
http build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
httplib build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
proxy Fix lint issues reported by staticcheck 2022-06-13 21:13:50 +02:00
restic build: update to go1.19 and make go1.17 the minimum required version 2022-08-03 18:04:58 +01:00
servetest build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
sftp docs/sftp: document use of chunk_size option in sftp remote paired with serve sftp 2022-08-31 00:04:04 +02:00
webdav serve webdav: fix incorrect Content-Type immediately after upload 2022-09-12 12:37:47 +01:00
serve.go build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00