From 9bef4b7df1464043fa139f0f046c725980e3577e Mon Sep 17 00:00:00 2001 From: jesopo Date: Sat, 8 Dec 2018 09:00:12 +0000 Subject: Switch to using a case insensitive dictionary for headers instead of doing .title() on each header key --- modules/github.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/github.py') diff --git a/modules/github.py b/modules/github.py index ea0fd80b..92a0c268 100644 --- a/modules/github.py +++ b/modules/github.py @@ -41,7 +41,7 @@ class Module(ModuleManager.BaseModule): )["payload"][0] data = json.loads(payload) - github_event = event["headers"]["X-Github-Event"] + github_event = event["headers"]["X-GitHub-Event"] if github_event == "ping": return True -- cgit v1.3.1-10-gc9f91