From a462faf2bfa3251ebd327293f7f78e546bc3c9a4 Mon Sep 17 00:00:00 2001 From: Krateng Date: Sun, 6 Sep 2020 18:19:48 +0200 Subject: [PATCH] Changed redirect to more appropriate HTTP code --- maloja/server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maloja/server.py b/maloja/server.py index 942d51d..4ef5744 100755 --- a/maloja/server.py +++ b/maloja/server.py @@ -63,12 +63,12 @@ init_apis(webserver) @webserver.get("/api/s/") @webserver.post("/api/s/") def deprecated_api_s(pth): - redirect("/apis/" + pth + "?" + request.query_string,307) + redirect("/apis/" + pth + "?" + request.query_string,308) @webserver.get("/api/") @webserver.post("/api/") def deprecated_api(pth): - redirect("/apis/mlj_1/" + pth + "?" + request.query_string,307) + redirect("/apis/mlj_1/" + pth + "?" + request.query_string,308)