From 4dd3f7ff08383bc4545d8e9ca1a67df252aa5ce8 Mon Sep 17 00:00:00 2001 From: James Lu Date: Tue, 24 Dec 2019 13:17:52 -0800 Subject: [PATCH] GitLab: fix searching for X-Gitlab-Event This was broken by 726ac377ed29363c9a88fc1ef51523718e3540b7 --- GitLab/plugin.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/GitLab/plugin.py b/GitLab/plugin.py index 30c83ef..ae44d64 100644 --- a/GitLab/plugin.py +++ b/GitLab/plugin.py @@ -63,15 +63,15 @@ class GitLabHandler(object): self.irc = None def handle_payload(self, headers, payload, irc): - if 'X-GitLab-Event' not in headers: - self.log.info('Invalid header: Missing X-GitLab-Event entry') + if 'X-Gitlab-Event' not in headers: + self.log.info('Invalid header: Missing X-Gitlab-Event entry') return self.irc = irc self.log.debug('GitLab: running on network %r', irc.network) - event_type = headers['X-GitLab-Event'] + event_type = headers['X-Gitlab-Event'] if event_type not in ['Push Hook', 'Tag Push Hook', 'Note Hook', 'Issue Hook', 'Merge Request Hook']: - self.log.info('Unsupported X-GitLab-Event type') + self.log.info('Unsupported X-Gitlab-Event type') return # Check if any channel has subscribed to this project