From f8b62a8330da2240b0d82e418f44ca609f5aba52 Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Thu, 23 Nov 2023 18:49:05 +0100 Subject: [PATCH] Remove Basic from Authorization (put in the .env file) --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index cb947fc..28b89fc 100644 --- a/main.go +++ b/main.go @@ -133,7 +133,7 @@ func sendMessage(messageSubject string, messageText string) { req, _ := http.NewRequest("POST", NTFY_HOST, strings.NewReader(messageText)) req.Header.Set("Title", messageSubject) - req.Header.Set("Authorization", "Basic "+NTFY_AUTH) + req.Header.Set("Authorization", NTFY_AUTH) req.Header.Set("Email", TO_EMAIL) req.Header.Set("Tags", "date,octopus") req.Header.Set("Priority", "high")