From d82914054bb75574c2675649a943025e57fa8680 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sun, 22 Feb 2015 21:23:26 +0100 Subject: deal with the initial "zen" message from github; fix things --- webhook-core.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'webhook-core.py') diff --git a/webhook-core.py b/webhook-core.py index bff1137..a9418bc 100755 --- a/webhook-core.py +++ b/webhook-core.py @@ -38,6 +38,12 @@ if __name__ == "__main__": # now sync this repository data = get_github_payload() + if 'zen' in data: + # github sends this initially + print("Content-Type: text/plain") + print() + print("Welcome!") + sys.exit(0) ref = data["ref"] oldsha = data["before"] newsha = data["after"] -- cgit v1.2.3