We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8684b9 commit 68c793cCopy full SHA for 68c793c
internal/notif/gotify/client.go
@@ -86,7 +86,6 @@ func (c *Client) Send(entry model.NotifEntry) error {
86
u.Path = path.Join(u.Path, "message")
87
88
q := u.Query()
89
- q.Set("token", token)
90
u.RawQuery = q.Encode()
91
92
cancelCtx, cancel := context.WithCancelCause(context.Background())
@@ -110,6 +109,7 @@ func (c *Client) Send(entry model.NotifEntry) error {
110
109
req.Header.Set("Content-Type", "application/json")
111
req.Header.Add("Content-Length", strconv.Itoa(len(string(jsonBody))))
112
req.Header.Set("User-Agent", c.meta.UserAgent)
+ req.Header.Set("X-Gotify-Key", token)
113
114
resp, err := hc.Do(req)
115
if err != nil {
0 commit comments