mirror of
https://github.com/house-of-vanity/conf_bot.git
synced 2025-07-06 14:24:08 +00:00
Fix logging. Update cert gen script.
This commit is contained in:
@ -30,7 +30,6 @@ class RequestHandler(SimpleHTTPRequestHandler):
|
||||
|
||||
length = self.headers.get('content-length')
|
||||
post_body = self.rfile.read(int(length))
|
||||
print(post_body)
|
||||
msg = json.loads(post_body.decode("utf-8"))
|
||||
self.worker.handleUpdate(msg)
|
||||
|
||||
@ -42,7 +41,7 @@ class WebHook:
|
||||
def __init__(self,
|
||||
certfile,
|
||||
keyfile,
|
||||
address='0.0.0.0',
|
||||
address=settings.parser.get('bot', 'bind_address'),
|
||||
port=8443,
|
||||
RequestHandler=RequestHandler):
|
||||
|
||||
|
Reference in New Issue
Block a user