From 699d101ca5307c43c72fb18953e2644edd72c01f Mon Sep 17 00:00:00 2001 From: Jonathan Ervine Date: Fri, 28 Aug 2020 11:45:52 +0800 Subject: [PATCH] More debug code --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 30199f1..413453e 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) { - log.Printf(r.Header) + log.Printf(r.Header.Get) if r.Header.Get("api_key") != appConfig.APIKey { http.Error(w, "invalid api key", http.StatusUnauthorized) log.Printf("invalid api key")