rclone/cmd/serve/webdav
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
..
testdata/golden serve http, serve webdav: Added a --template flag for user defined markup 2020-05-04 17:36:31 +00:00
webdav.go serve webdav: fix incorrect Content-Type immediately after upload 2022-09-12 12:37:47 +01:00
webdav_test.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00