fix: add a User-Agent
This commit is contained in:
2 files changed
+2
-1
No files matched your search
@@ -34,6 +34,7 @@ async function customFetch(
|
||||
if (init) {
|
||||
init.headers = {
|
||||
...init.headers,
|
||||
'User-Agent': `Photon/${__VERSION__}`,
|
||||
...(auth ? { authorization: `Bearer ${auth}` } : {}),
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user