Download:
child 230:fad96431bcb1
parent 228:f45f894eb706
229:2d2ee1d1d823
Anton Shestakov <av6@dwimlabs.net>, Thu, 25 Aug 2016 11:41:31 +0800
queue: if there's no event header, set event to 'nonexistent'

1 файлов изменено, 1 вставок(+), 1 удалений(-) [+]
hooks-queue.py file | annotate | diff | comparison | revisions
--- a/hooks-queue.py Thu Aug 25 11:40:24 2016 +0800
+++ b/hooks-queue.py Thu Aug 25 11:41:31 2016 +0800
@@ -70,7 +70,7 @@
class GithubHookHandler(BaseHookHandler):
def post(self):
- event = self.request.headers.get('X-GitHub-Event')
+ event = self.request.headers.get('X-GitHub-Event', 'nonexistent')
logging.debug('%s received event %r', self.__class__.__name__, event)
getattr(self, 'handle_' + event, self.unknown_event)()