mirror of
https://github.com/adnanh/webhook.git
synced 2026-07-26 17:19:17 +08:00
Renamed http-response-code to success-http-response-code
This commit is contained in:
+2
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user