aboutsummaryrefslogtreecommitdiff
path: root/modules/github.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/github.py')
-rw-r--r--modules/github.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/github.py b/modules/github.py
index 06fbdae6..4c7dae5d 100644
--- a/modules/github.py
+++ b/modules/github.py
@@ -38,8 +38,8 @@ class Module(ModuleManager.BaseModule):
def github(self, event):
payload = event["data"].decode("utf8")
if event["headers"]["Content-Type"] == FORM_ENCODED:
- payload = urllib.parse.parse_qs(urllib.parse.unquote(payload)
- )["payload"][0]
+ payload = urllib.parse.unquote(urllib.parse.parse_qs(payload)[
+ "payload"][0])
data = json.loads(payload)
github_event = event["headers"]["X-GitHub-Event"]