From 786e8b89a3a93610c22df8c0b28891ed3870d963 Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 6 Dec 2018 12:01:23 +0000 Subject: [PATCH] 'content-type' -> 'Content-Type' (github.py) --- modules/github.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/github.py b/modules/github.py index c147ae42..5780d1eb 100644 --- a/modules/github.py +++ b/modules/github.py @@ -36,7 +36,7 @@ class Module(ModuleManager.BaseModule): @utils.hook("api.post.github") def github(self, event): payload = event["data"].decode("utf8") - if event["headers"]["content-type"] == FORM_ENCODED: + if event["headers"]["Content-Type"] == FORM_ENCODED: payload = urllib.parse.parse_qs(urllib.parse.unquote(payload) )["payload"][0] data = json.loads(payload)