Set user agent responsibly
This commit is contained in:
parent
534a098683
commit
d9bf2380fe
|
@ -28,7 +28,7 @@ export default async function Search(
|
|||
|
||||
c.header("content-type", ContentType(type))
|
||||
|
||||
const img = await fetch(imageURL)
|
||||
const img = await fetch(imageURL, {headers: {"User-Agent": "waifurudorde/1.0.0"}})
|
||||
// Turn the image into an ArrayBuffer
|
||||
.then((fetchRes) => {
|
||||
return fetchRes?.arrayBuffer()
|
||||
|
|
Loading…
Reference in New Issue