From 46f6476f05196fa26e32a9bdca82d6aada74a54c Mon Sep 17 00:00:00 2001 From: Jonathan Ervine Date: Fri, 28 Aug 2020 11:55:34 +0800 Subject: [PATCH] More debug --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 05a29f4..8337251 100644 --- a/main.go +++ b/main.go @@ -30,7 +30,7 @@ type SlackConfig struct { // PostHandler send notifications from synology to slack func PostHandler(w http.ResponseWriter, r *http.Request) { - api = r.Header.Get("api_key") + api := r.Header.Get("api_key") if r.Header.Get("api_key") != appConfig.APIKey { http.Error(w, "invalid api key", http.StatusUnauthorized) log.Printf("invalid api key: %s", api)