Skip to content

Commit

Permalink
logical error
Browse files Browse the repository at this point in the history
  • Loading branch information
adnanh committed Feb 25, 2015
1 parent 899e533 commit d285c08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func jsonHandler(id string, body []byte, signature string, payload interface{})
return
}

if expectedMAC, ok := helpers.CheckPayloadSignature(body, hook.Secret, signature); ok {
if expectedMAC, ok := helpers.CheckPayloadSignature(body, hook.Secret, signature); !ok {
l4g.Error("Hook %s got matched and contains the secret, but the request contained invalid signature. Expected %s, got %s.", hook.ID, expectedMAC, signature)
return
}
Expand Down

0 comments on commit d285c08

Please sign in to comment.