utf8-decode github webhook json data
This commit is contained in:
parent
6724ef94e5
commit
aab84096fd
1 changed files with 1 additions and 1 deletions
|
@ -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":
|
||||
|
|
Loading…
Reference in a new issue