Skip to content

Commit 9687689

Browse files
author
bajins
committed
signature bug fixes
1 parent d695151 commit 9687689

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ func webHooks(w http.ResponseWriter, r *http.Request) {
106106
func VerifySignature(header http.Header, data string, secret string) bool {
107107
signature := header.Get("X-Hub-Signature")
108108
if signature != "" && len(signature) > 0 {
109-
signature = strings.Split(signature, "=")[0]
109+
signature = strings.Split(signature, "=")[1]
110110
return signature == utils.ComputeHash1(data, secret)
111111
}
112112
signature = header.Get("X-Gitea-Signature")

0 commit comments

Comments
 (0)