web.none: Redirect instead of 404

This commit is contained in:
Unrud
2022-01-18 18:20:16 +01:00
parent 22fc38850c
commit 685a91bfe6
2 changed files with 3 additions and 2 deletions

View File

@@ -31,5 +31,5 @@ class Web(web.BaseWeb):
assert path == "/.web" or path.startswith("/.web/")
assert pathutils.sanitize_path(path) == path
if path != "/.web":
return httputils.NOT_FOUND
return httputils.redirect(base_prefix + "/.web")
return client.OK, {"Content-Type": "text/plain"}, "Radicale works!"