Fix auth because I am dumb

This commit is contained in:
Dominik V. Salonen 2016-09-23 13:17:27 +02:00
parent 250adf01cf
commit dcf3a02f9d
1 changed files with 1 additions and 1 deletions

2
run.py
View File

@ -69,7 +69,7 @@ def allowed_file(filename):
def upload_file():
if request.method == 'POST':
print_log('Web', 'New file received')
if not application.auth(request.headers.get('X-Hyozan-Auth'), config["KEY"]):
if not application.basicauth(request.headers.get('X-Hyozan-Auth'), config["KEY"]):
abort(403)
data = dict()
file = request.files['file']