.BANCHO. .FIX. Hopefully fixed headers issues with gevent
This commit is contained in:
parent
7c906e48c5
commit
1a31042619
|
@ -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
|
||||
|
|
2
pep.py
2
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")
|
||||
|
|
Loading…
Reference in New Issue
Block a user