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:
parent
64c6ab2041
commit
1a4ad1f97e
1 changed files with 0 additions and 6 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue