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 a26085f commit 65584bf
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,6 @@
UPLOAD_FOLDER = 'static/files'
app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER

@app.before_request
def before_request():
url = request.url.replace("http://", "https://", 1)
code = 301
return redirect(url, code=code)

def get_database_name():
try:
with open("database_name.txt") as d:
Expand Down

0 comments on commit 65584bf

Please sign in to comment.