1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2025-10-30 12:32:12 +01:00

Docs, fix lint

This commit is contained in:
binwiederhier 2024-09-29 13:20:36 -04:00
parent 84f421a464
commit d243c22510
3 changed files with 7 additions and 4 deletions

View file

@ -1828,7 +1828,7 @@ func (s *Server) transformBodyJSON(next handleFunc) handleFunc {
if m.Priority != 0 {
r.Header.Set("X-Priority", fmt.Sprintf("%d", m.Priority))
}
if m.Tags != nil && len(m.Tags) > 0 {
if len(m.Tags) > 0 {
r.Header.Set("X-Tags", strings.Join(m.Tags, ","))
}
if m.Attach != "" {