This commit is contained in:
Aevann1 2021-12-21 22:36:48 +02:00
parent b734571022
commit a177c05972
2 changed files with 0 additions and 6 deletions

View file

@ -106,10 +106,6 @@ def before_request():
g.timestamp = int(time.time())
if not request.path.startswith("/assets") and not request.path.startswith("/images") and not request.path.startswith("/hostedimages"):
session.permanent = True
if not session.get("session_id"): session["session_id"] = secrets.token_hex(52)
if request.url.startswith("http://") and "localhost" not in app.config["SERVER_NAME"]:
url = request.url.replace("http://", "https://", 1)
return redirect(url, code=301)