From b92ae8b3c73236cfdd1fafdc00f7dc20b524dec7 Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Sat, 6 Sep 2014 10:29:06 -0700 Subject: [PATCH] forcing github hook as `form` content_type --- plugin/remote/github/helper.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/remote/github/helper.go b/plugin/remote/github/helper.go index 6a605776a..6b46b91bf 100644 --- a/plugin/remote/github/helper.go +++ b/plugin/remote/github/helper.go @@ -147,7 +147,7 @@ func CreateHook(client *github.Client, owner, name, url string) (*github.Hook, e hook.Events = []string{"push", "pull_request"} hook.Config = map[string]interface{}{} hook.Config["url"] = url - hook.Config["content_type"] = "json" + hook.Config["content_type"] = "form" created, _, err := client.Repositories.CreateHook(owner, name, hook) return created, err } @@ -162,7 +162,7 @@ func CreateUpdateHook(client *github.Client, owner, name, url string) (*github.H hook.Events = []string{"push", "pull_request"} hook.Config = map[string]interface{}{} hook.Config["url"] = url - hook.Config["content_type"] = "json" + hook.Config["content_type"] = "form" var updated, _, err = client.Repositories.EditHook(owner, name, *hook.ID, hook) return updated, err }