From 24334d1defd884b7476cac5cf38d7a811c113b21 Mon Sep 17 00:00:00 2001 From: 0880 <98263509+0880880@users.noreply.github.com> Date: Tue, 20 Jan 2026 19:17:51 +0330 Subject: [PATCH] Fix code --- slow/slow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" )