set Title
This commit is contained in:
parent
a4e36cdded
commit
c3b25251f5
1 changed files with 2 additions and 0 deletions
2
ntfy.go
2
ntfy.go
|
|
@ -15,6 +15,8 @@ func Send(topic, title, message string, fn func(*http.Request)) (err error) {
|
|||
}
|
||||
|
||||
req.Header.Set("Markdown", "true")
|
||||
req.Header.Set("Title", title)
|
||||
|
||||
fn(req)
|
||||
|
||||
resp, err := http.DefaultClient.Do(req)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue