Skip to content

Commit

Permalink
ssl
Browse files Browse the repository at this point in the history
  • Loading branch information
Joramas committed Apr 2, 2024
1 parent 2ffc864 commit a26085f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@

@app.before_request
def before_request():
if app.env == "development":
return
if request.is_secure:
return

url = request.url.replace("http://", "https://", 1)
code = 301
return redirect(url, code=code)
Expand Down

0 comments on commit a26085f

Please sign in to comment.