From 68c793c1a1c9b812031f68c6e9b78f771aaa5ded Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Sat, 8 Nov 2025 23:25:32 +0100 Subject: [PATCH] gotify: use X-Gotify-Key header to send token --- internal/notif/gotify/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/notif/gotify/client.go b/internal/notif/gotify/client.go index 6c27d674..c9e07663 100644 --- a/internal/notif/gotify/client.go +++ b/internal/notif/gotify/client.go @@ -86,7 +86,6 @@ func (c *Client) Send(entry model.NotifEntry) error { u.Path = path.Join(u.Path, "message") q := u.Query() - q.Set("token", token) u.RawQuery = q.Encode() cancelCtx, cancel := context.WithCancelCause(context.Background()) @@ -110,6 +109,7 @@ func (c *Client) Send(entry model.NotifEntry) error { req.Header.Set("Content-Type", "application/json") req.Header.Add("Content-Length", strconv.Itoa(len(string(jsonBody)))) req.Header.Set("User-Agent", c.meta.UserAgent) + req.Header.Set("X-Gotify-Key", token) resp, err := hc.Do(req) if err != nil {