We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d695151 commit 9687689Copy full SHA for 9687689
server.go
@@ -106,7 +106,7 @@ func webHooks(w http.ResponseWriter, r *http.Request) {
106
func VerifySignature(header http.Header, data string, secret string) bool {
107
signature := header.Get("X-Hub-Signature")
108
if signature != "" && len(signature) > 0 {
109
- signature = strings.Split(signature, "=")[0]
+ signature = strings.Split(signature, "=")[1]
110
return signature == utils.ComputeHash1(data, secret)
111
}
112
signature = header.Get("X-Gitea-Signature")
0 commit comments