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:
parent
4ed77cabc6
commit
22fc38850c
2 changed files with 3 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue