tranquan24 commited on
Commit
09f3097
·
verified ·
1 Parent(s): ac2a68c

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -3
index.js CHANGED
@@ -28,12 +28,10 @@ app.get('*', async (req, res) => {
28
  return res.status(405).send('Method Not Allowed');
29
  }
30
 
31
-
32
-
33
  const filename = req.params[0];
34
 
35
  if (filename) {
36
- const originalUrl = `${REQUEST_URL}${filename}`;
37
  const headers = {
38
  'Authorization': `Bearer ${TOKEN}`,
39
  'Range': req.headers.range || ''
 
28
  return res.status(405).send('Method Not Allowed');
29
  }
30
 
 
 
31
  const filename = req.params[0];
32
 
33
  if (filename) {
34
+ const originalUrl = `${REQUEST_URL || 'https://huggingface.co/tranquan24/video/resolve/main/'}${filename}`;
35
  const headers = {
36
  'Authorization': `Bearer ${TOKEN}`,
37
  'Range': req.headers.range || ''