mirror of
https://github.com/Kozea/Radicale.git
synced 2025-07-29 18:08:31 +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
|
@ -36,7 +36,8 @@ class TestBaseWebRequests(BaseTest):
|
|||
self.configure({"web": {"type": "none"}})
|
||||
_, answer = self.get("/.web")
|
||||
assert answer
|
||||
self.get("/.web/", check=404)
|
||||
_, headers, _ = self.request("GET", "/.web/", check=302)
|
||||
assert headers.get("Location") == "/.web"
|
||||
self.post("/.web", check=405)
|
||||
|
||||
def test_custom(self) -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue