This commit is contained in:
0880
2026-01-20 19:17:51 +03:30
parent 936e209fb8
commit 24334d1def

View File

@@ -300,7 +300,7 @@ def render(request: Request, file: str | Path, variables: dict[str, Any] = {}) -
def redirect(location: str):
return f"HTTP/1.1 301 Temporary Redirect\r\nContent-Length: 0\r\nLocation: {location}".encode(
return f"HTTP/1.1 307 Temporary Redirect\r\nContent-Length: 0\r\nLocation: {location}".encode(
encoding="utf-8"
)