fix: add a User-Agent
This commit is contained in:
2 files changed
+2
-1
No files matched your search
@@ -27,7 +27,7 @@
|
|||||||
class="container mx-auto z-10 rounded-xl max-h-[60vh] relative overflow-hidden bg-slate-100 dark:bg-zinc-900"
|
class="container mx-auto z-10 rounded-xl max-h-[60vh] relative overflow-hidden bg-slate-100 dark:bg-zinc-900"
|
||||||
data-sveltekit-preload-data="off"
|
data-sveltekit-preload-data="off"
|
||||||
aria-label={post.name}
|
aria-label={post.name}
|
||||||
onclick={() => showImage(bestImageURL(post, false, -1))}
|
onclick={() => showImage(bestImageURL(post, false, -1, null))}
|
||||||
role="button"
|
role="button"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ async function customFetch(
|
|||||||
if (init) {
|
if (init) {
|
||||||
init.headers = {
|
init.headers = {
|
||||||
...init.headers,
|
...init.headers,
|
||||||
|
'User-Agent': `Photon/${__VERSION__}`,
|
||||||
...(auth ? { authorization: `Bearer ${auth}` } : {}),
|
...(auth ? { authorization: `Bearer ${auth}` } : {}),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user