remove unnecessary validation response

This commit is contained in:
skidoodle 2024-01-27 20:37:44 +01:00
parent 64c6ab2041
commit 1a4ad1f97e

View file

@ -32,12 +32,6 @@ export default async function handler(
const response = await fetch(link, { method: 'HEAD' })
if (!response.ok) {
return res
.status(400)
.json({ error: 'Invalid host or network unreachable' })
}
const status = response.status
res.status(200).json({ status })
} catch (error) {