discord: point the User-Agent at git.54l1m.io
test / test (push) Successful in 45s

This commit is contained in:
2026-11-30 13:19:36 +01:00
parent 89f5fd106e
commit 7af9936fc6
+1 -1
View File
@@ -52,7 +52,7 @@ func (d *Discord) do(ctx context.Context, method, path, contentType string, body
return err return err
} }
req.Header.Set("Authorization", "Bot "+d.Token) req.Header.Set("Authorization", "Bot "+d.Token)
req.Header.Set("User-Agent", "DiscordBot (https://git.pf4.io, 0.1) jobhunt") req.Header.Set("User-Agent", "DiscordBot (https://git.54l1m.io, 0.1) jobhunt")
if contentType != "" { if contentType != "" {
req.Header.Set("Content-Type", contentType) req.Header.Set("Content-Type", contentType)
} }