mirror of
https://github.com/adnanh/webhook.git
synced 2025-05-13 09:04:44 +00:00
Add code comment for signaturePayload
Signed-off-by: Jacob Weinstock <jakobweinstock@gmail.com>
This commit is contained in:
parent
021efc38e5
commit
bd28fd0957
1 changed files with 1 additions and 0 deletions
|
@ -949,6 +949,7 @@ func (r MatchRule) Evaluate(req *Request) (bool, error) {
|
|||
return false, err
|
||||
}
|
||||
|
||||
// signaturePayload will concatenate the request body with header values from headers specified in r.Parameter.SignaturePayloadHeaders.
|
||||
func (r MatchRule) signaturePayload(body []byte, headers map[string]interface{}) []byte {
|
||||
if len(r.Parameter.SignaturePayloadHeaders) > 0 {
|
||||
for _, elem := range r.Parameter.SignaturePayloadHeaders {
|
||||
|
|
Loading…
Add table
Reference in a new issue