Forgot a rename in previous refactoring.

This commit is contained in:
Andreas Lundblad 2018-09-17 20:41:51 +02:00
parent b65bdbbb24
commit 54a7190113

View file

@ -295,7 +295,7 @@ func hookHandler(w http.ResponseWriter, r *http.Request) {
} else {
// Check if a success return code is configured for the hook
if matchedHook.SuccessHttpResponseCode != 0 {
writeHttpResponseCode(w, rid, matchedHook.ID, matchedHook.HttpResponseCode)
writeHttpResponseCode(w, rid, matchedHook.ID, matchedHook.SuccessHttpResponseCode)
}
fmt.Fprintf(w, response)
}