commit
Add User-Agent header
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