mirror of
https://github.com/Kozea/Radicale.git
synced 2025-07-02 16:58:30 +00:00
web.none: Redirect instead of 404
This commit is contained in:
parent
9b76b70d06
commit
cb2f237882
2 changed files with 3 additions and 2 deletions
|
@ -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!"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue