diff --git a/slow/slow.py b/slow/slow.py index 4aaa6ae..5e1a130 100644 --- a/slow/slow.py +++ b/slow/slow.py @@ -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" )