From 5fa621d7432ccdb8da34086e70e3ef0b26561748 Mon Sep 17 00:00:00 2001 From: claudemiro Date: Fri, 4 Mar 2016 08:32:08 -0300 Subject: [PATCH] Added user-agent header with the url of the project --- ipe/webhooks.go | 1 + 1 file changed, 1 insertion(+) diff --git a/ipe/webhooks.go b/ipe/webhooks.go index 0503848..ccf44c2 100644 --- a/ipe/webhooks.go +++ b/ipe/webhooks.go @@ -150,6 +150,7 @@ func triggerHook(name string, a *app, c *channel, event hookEvent) { return } + req.Header.Set("User-Agent", "Ipe UA; (+https://github.com/dimiro1/ipe)") req.Header.Set("Content-Type", "application/json") req.Header.Set("X-Pusher-Key", a.Key) req.Header.Set("X-Pusher-Signature", utils.HashMAC(js, []byte(a.Secret)))