Remove Basic from Authorization (put in the .env file)
This commit is contained in:
parent
0da7f8f6f7
commit
f8b62a8330
1 changed files with 1 additions and 1 deletions
2
main.go
2
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")
|
||||
|
|
Loading…
Reference in a new issue