Update server.py
This commit is contained in:
parent
b41d980907
commit
55eb92c9a1
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ def loadcert():
|
|||
def allowed_file(filename):
|
||||
return '.' in filename and filename.rsplit('.', 1)[1].lower() == "pem"
|
||||
@app.route("/certload", methods=['GET', 'POST'])
|
||||
def loadcert():
|
||||
def loadcert_backend():
|
||||
if request.method == 'POST':
|
||||
if 'cert' not in request.files:
|
||||
return "Invalid request. (cert is missing!)"
|
||||
|
|
Loading…
Add table
Reference in a new issue