Added user-agent header with the url of the project

This commit is contained in:
claudemiro
2016-03-04 08:32:08 -03:00
parent 880d7bda2a
commit 5fa621d743
+1
View File
@@ -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)))