Skip to content

Commit

Permalink
Response with 202
Browse files Browse the repository at this point in the history
  • Loading branch information
gcatanese committed Mar 7, 2024
1 parent 8a71e49 commit e2d051e
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 e2d051e

Please sign in to comment.