sdffsd
This commit is contained in:
parent
b734571022
commit
a177c05972
2 changed files with 0 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue