LIFE IS PAIN

This commit is contained in:
Violet 2023-10-25 22:07:48 -05:00
parent 34e02e687f
commit e301dfc604

View file

@ -45,6 +45,8 @@ app.get("/getLink", async (req, res) => {
const quality = req.query.quality const quality = req.query.quality
const redir = req.query.redirect const redir = req.query.redirect
res.setHeader("X-Accel-Buffering", "no")
if (!ytdl.validateURL(url)) { if (!ytdl.validateURL(url)) {
res.header("Content-Type", "text/html") res.header("Content-Type", "text/html")
res.write(`<link rel="stylesheet" href="/style.css">`) res.write(`<link rel="stylesheet" href="/style.css">`)