diff --git a/handlers/mainHandler.py b/handlers/mainHandler.py index fa67103..3723242 100644 --- a/handlers/mainHandler.py +++ b/handlers/mainHandler.py @@ -55,7 +55,8 @@ def POSTMain(): st = datetime.datetime.now() # Client's token string and request data - requestTokenString = bottle.request.headers.get("osu-token") + #requestTokenString = bottle.request.headers.get("osu-token") + requestTokenString = bottle.request.get_header("osu-token") requestData = bottle.request.body.read() # Server's token string and request data diff --git a/pep.py b/pep.py index 8b3cff0..95114bf 100644 --- a/pep.py +++ b/pep.py @@ -189,4 +189,4 @@ if __name__ == "__main__": consoleHelper.printColored("> Bottle listening for HTTP(s) clients on 127.0.0.1:{}...".format(serverPort), bcolors.GREEN) # Start bottle - bottle.run(app=app, host="0.0.0.0", port=serverPort, server="gevent", quiet=True) + bottle.run(app=app, host="0.0.0.0", port=serverPort, server="gevent")