UA: Set source link responsibly, too
This commit is contained in:
parent
d9bf2380fe
commit
4fe60f7c5d
|
@ -28,7 +28,7 @@ export default async function Search(
|
|||
|
||||
c.header("content-type", ContentType(type))
|
||||
|
||||
const img = await fetch(imageURL, {headers: {"User-Agent": "waifurudorde/1.0.0"}})
|
||||
const img = await fetch(imageURL, {headers: {"User-Agent": "waifurudorde/1.0.0 (+https://git.froth.zone/sam/waifurudor.de)"}})
|
||||
// Turn the image into an ArrayBuffer
|
||||
.then((fetchRes) => {
|
||||
return fetchRes?.arrayBuffer()
|
||||
|
|
Loading…
Reference in New Issue