From dcf3a02f9d33fc5e4dd16b7d8b2b3aaba361f67e Mon Sep 17 00:00:00 2001 From: "Dominik V. Salonen" Date: Fri, 23 Sep 2016 13:17:27 +0200 Subject: [PATCH] Fix auth because I am dumb --- run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run.py b/run.py index b32083f..2b64039 100755 --- a/run.py +++ b/run.py @@ -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']