Skip to content

Commit 7a85fe3

Browse files
Update webhook.go
1 parent 7d85ece commit 7a85fe3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scm/driver/gitea/webhook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func (s *webhookService) Parse(req *http.Request, fn scm.SecretFunc) (scm.Webhoo
6363
signature := req.Header.Get("X-Gitea-Signature")
6464

6565
// test signature if header not set and secret is in payload
66-
if (signature == "" || signature == nil) && secret != "" && secret != key {
66+
if signature == "" && secret != "" && secret != key {
6767
return hook, scm.ErrSignatureInvalid
6868
}
6969

0 commit comments

Comments
 (0)