Renamed http-response-code to success-http-response-code

This commit is contained in:
Andreas Lundblad 2018-09-15 16:00:42 +02:00
parent c05ca8c528
commit 22073d8847
3 changed files with 4 additions and 4 deletions

View file

@ -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)