Fix code
This commit is contained in:
@@ -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"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user