1
0
Fork 0

UA: Set source link responsibly, too

This commit is contained in:
Sam Therapy 2023-10-09 22:31:20 +02:00
parent d9bf2380fe
commit 4fe60f7c5d
Signed by: sam
GPG Key ID: 4D8B07C18F31ACBD
1 changed files with 1 additions and 1 deletions

View File

@ -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()