mirror of
https://github.com/adnanh/webhook.git
synced 2026-07-26 17:19:17 +08:00
Update webhook.go
misplaced closing bracket...
This commit is contained in:
+2
-2
@@ -126,9 +126,9 @@ func hookHandler(req *http.Request, params martini.Params) string {
|
|||||||
if len(req.Header.Get("X-Hub-Signature")) > 5 {
|
if len(req.Header.Get("X-Hub-Signature")) > 5 {
|
||||||
payloadSignature = req.Header.Get("X-Hub-Signature")[5:]
|
payloadSignature = req.Header.Get("X-Hub-Signature")[5:]
|
||||||
}
|
}
|
||||||
|
|
||||||
go jsonHandler(params["id"], body, payloadSignature, payloadJSON)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
go jsonHandler(params["id"], body, payloadSignature, payloadJSON)
|
||||||
} else {
|
} else {
|
||||||
req.ParseForm()
|
req.ParseForm()
|
||||||
go formHandler(params["id"], req.Form)
|
go formHandler(params["id"], req.Form)
|
||||||
|
|||||||
Reference in New Issue
Block a user