1
mirror of https://github.com/rclone/rclone synced 2024-12-27 19:43:48 +01:00
rclone/cmd/serve
Nick Craig-Wood 8bf4697dc2 serve http/webdav: redirect requests to the base url without the /
When using `--baseurl` before this patch, if a request was made to the
base URL without a trailing / then rclone would return a 404 error.

Unfortunately GVFS / Nautilus makes the request without the /
regardless of what the user put in.

This patch redirects the request to the base URL with a /. So if the
user was using `--baseurl rclone` then a request to
http://localhost/rclone would be redirected with a 308 response to
http://localhost/rclone/

Fixes #4814
2020-12-01 18:00:07 +00:00
..
dlna accounting: add context.Context #3257 #4685 2020-11-09 18:05:54 +00:00
ftp serve ftp: add options to enable TLS - fixes #3640 2020-11-23 16:07:51 +00:00
http filter: deglobalise to put filter config into the context #4685 2020-11-27 17:28:42 +00:00
httplib serve http/webdav: redirect requests to the base url without the / 2020-12-01 18:00:07 +00:00
proxy fs: Add context to NewFs #3257 #4685 2020-11-09 18:05:54 +00:00
restic serve restic: implement object cache 2020-11-12 17:58:46 +00:00
servetest servetest: add -sub-run flag for running a subset of the backend tests 2020-11-10 16:47:25 +00:00
sftp fs: deglobalise the config #4685 2020-11-26 16:40:12 +00:00
webdav filter: deglobalise to put filter config into the context #4685 2020-11-27 17:28:42 +00:00
serve.go docs: spelling: e.g. 2020-10-28 18:16:23 +00:00