Dough Git

commit

Add User-Agent header

commit
c0eb3750c3387f7b1dc14aa5466da82f648824e0
author
Clove Twilight <[email protected]>
date
2026-07-12 18:08

diff --git a/src/system/config.ts b/src/system/config.ts
index 928ee02..072e8b4 100644
--- a/src/system/config.ts
+++ b/src/system/config.ts
@@ -26,7 +26,10 @@ export function systemToken(): string | undefined {
 
 export function pluralkitHeaders(): Record<string, string> {
   const token = systemToken();
-  return token ? { Authorization: token } : {};
+  return {
+    "User-Agent": "doughmination-restful/2.0 (+https://doughmination.uk)",
+    ...(token ? { Authorization: token } : {}),
+  };
 }
 
 export function cacheTtl(): number {
@@ -75,4 +78,4 @@ export function corsOrigins(): string[] {
     .map((s) => s.trim())
     .filter(Boolean);
   return [...new Set([...defaults, ...extra])];
-}
+}
\ No newline at end of file