1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-08-31 19:50:55 +00:00

web.internal: Use absolute path for redirect

This commit is contained in:
Unrud 2022-01-18 18:20:15 +01:00
parent 4ed77cabc6
commit 22fc38850c
2 changed files with 3 additions and 5 deletions

View file

@ -26,9 +26,8 @@ class TestBaseWebRequests(BaseTest):
"""Test web plugin."""
def test_internal(self) -> None:
_, headers, answer = self.request("GET", "/.web", check=302)
assert headers.get("Location") == ".web/"
assert answer == "Redirected to .web/"
_, headers, _ = self.request("GET", "/.web", check=302)
assert headers.get("Location") == "/.web/"
_, answer = self.get("/.web/")
assert answer
self.post("/.web", check=405)