fix: add a User-Agent

This commit is contained in:
James Xylight committed 2025-07-15 11:59:22 -07:00
1 parent 6389ec06a2
commit 9094dd7758
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -34,6 +34,7 @@ async function customFetch(
if (init) {
init.headers = {
...init.headers,
'User-Agent': `Photon/${__VERSION__}`,
...(auth ? { authorization: `Bearer ${auth}` } : {}),
}