'content-type' -> 'Content-Type' (github.py)
This commit is contained in:
parent
e6b0d4d167
commit
786e8b89a3
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue