mirror of
https://github.com/skidoodle/erettsegi-browser.git
synced 2025-02-15 05:39:15 +01:00
remove unnecessary validation response
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user