Skip to content

Commit

Permalink
Response with 202 (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
gcatanese authored Mar 7, 2024
1 parent 11a8b02 commit f9fe002
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/web/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ func WebhookHandler(c *gin.Context) {

ret = true
} else {
// HMAC signature is invalid: do not send [accepted] response
// HMAC signature is invalid
log.Println("HMAC signature is invalid")
ret = false
}

if ret {
c.String(200, "[accepted]")
c.Status(http.StatusAccepted)
} else {
c.String(401, "Invalid hmac signature")
}
Expand Down

0 comments on commit f9fe002

Please sign in to comment.