mirror of
https://github.com/adnanh/webhook.git
synced 2025-05-22 21:32:32 +00:00
Renamed http-response-code to success-http-response-code
This commit is contained in:
parent
c05ca8c528
commit
22073d8847
3 changed files with 4 additions and 4 deletions
|
@ -299,8 +299,8 @@ func hookHandler(w http.ResponseWriter, r *http.Request) {
|
|||
go handleHook(matchedHook, rid, &headers, &query, &payload, &body)
|
||||
|
||||
// Check if a return code is configured for the hook
|
||||
if matchedHook.HttpResponseCode != 0 {
|
||||
writeHttpResponseCode(w, rid, matchedHook.ID, matchedHook.HttpResponseCode)
|
||||
if matchedHook.SuccessHttpResponseCode != 0 {
|
||||
writeHttpResponseCode(w, rid, matchedHook.ID, matchedHook.SuccessHttpResponseCode)
|
||||
}
|
||||
|
||||
fmt.Fprintf(w, matchedHook.ResponseMessage)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue