Remove Basic from Authorization (put in the .env file)

This commit is contained in:
Simon Rieger 2023-11-23 18:49:05 +01:00
parent 0da7f8f6f7
commit f8b62a8330

View file

@ -133,7 +133,7 @@ func sendMessage(messageSubject string, messageText string) {
req, _ := http.NewRequest("POST", NTFY_HOST, req, _ := http.NewRequest("POST", NTFY_HOST,
strings.NewReader(messageText)) strings.NewReader(messageText))
req.Header.Set("Title", messageSubject) 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("Email", TO_EMAIL)
req.Header.Set("Tags", "date,octopus") req.Header.Set("Tags", "date,octopus")
req.Header.Set("Priority", "high") req.Header.Set("Priority", "high")