aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/github.py2
-rw-r--r--modules/rest_api.py2
2 files changed, 2 insertions, 2 deletions
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
diff --git a/modules/rest_api.py b/modules/rest_api.py
index f558efca..2914f5d3 100644
--- a/modules/rest_api.py
+++ b/modules/rest_api.py
@@ -14,7 +14,7 @@ class Handler(http.server.BaseHTTPRequestHandler):
_, _, endpoint = path[1:].partition("/")
endpoint, _, args = endpoint.partition("/")
args = list(filter(None, args.split("/")))
- headers = {key.title(): value for key, value in self.headers.items()}
+ headers = utils.CaseInsensitiveDict(dict(self.headers.items()))
response = ""
code = 404