'content-type' -> 'Content-Type' (github.py)

This commit is contained in:
jesopo 2018-12-06 12:01:23 +00:00
parent e6b0d4d167
commit 786e8b89a3

View file

@ -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)