From 54a7190113a98b814bf796b5bc8053f6ac06e92c Mon Sep 17 00:00:00 2001 From: Andreas Lundblad Date: Mon, 17 Sep 2018 20:41:51 +0200 Subject: [PATCH] Forgot a rename in previous refactoring. --- webhook.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webhook.go b/webhook.go index 4d6ae4e..cb44032 100644 --- a/webhook.go +++ b/webhook.go @@ -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) }