LIFE IS PAIN
This commit is contained in:
parent
34e02e687f
commit
e301dfc604
1 changed files with 2 additions and 0 deletions
2
index.js
2
index.js
|
@ -45,6 +45,8 @@ app.get("/getLink", async (req, res) => {
|
|||
const quality = req.query.quality
|
||||
const redir = req.query.redirect
|
||||
|
||||
res.setHeader("X-Accel-Buffering", "no")
|
||||
|
||||
if (!ytdl.validateURL(url)) {
|
||||
res.header("Content-Type", "text/html")
|
||||
res.write(`<link rel="stylesheet" href="/style.css">`)
|
||||
|
|
Loading…
Reference in a new issue