mod_pubsub_github: Update for new Github webhook format

Fri, 27 Feb 2015 16:42:36 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Fri, 27 Feb 2015 16:42:36 +0000
changeset 1620
754d97ba333d
parent 1619
43c54a27bab2
child 1621
738e9874a374

mod_pubsub_github: Update for new Github webhook format

mod_pubsub_github/mod_pubsub_github.lua file | annotate | diff | comparison | revisions
--- a/mod_pubsub_github/mod_pubsub_github.lua	Fri Feb 27 16:25:48 2015 +0000
+++ b/mod_pubsub_github/mod_pubsub_github.lua	Fri Feb 27 16:42:36 2015 +0000
@@ -8,7 +8,7 @@
 local node = module:get_option("github_node", "github");
 
 function handle_POST(event)
-	local data = json.decode(formdecode(event.request.body).payload);
+	local data = json.decode(event.request.body);
 	if not data then
 		return "Invalid JSON. From you of all people...";
 	end

mercurial