utf8-decode github webhook json data

This commit is contained in:
jesopo 2018-11-30 21:09:59 +00:00
parent 6724ef94e5
commit aab84096fd

View file

@ -33,7 +33,7 @@ COMMENT_ACTIONS = {
class Module(ModuleManager.BaseModule):
@utils.hook("api.post.github")
def github(self, event):
data = json.loads(event["data"])
data = json.loads(event["data"].decode("utf8"))
github_event = event["headers"]["X-GitHub-Event"]
if github_event == "ping":