[addon] remove cache control

This commit is contained in:
TheBeastLT
2020-03-17 19:12:25 +01:00
parent 99e489f8b8
commit e06ab1ca99
2 changed files with 4 additions and 6 deletions

View File

@@ -69,16 +69,13 @@ router.get('/:configuration/:resource/:type/:id.json', (req, res, next) => {
});
});
router.get('/realdebrid/:apiKey/:infoHash/:fileIndex?.json', (req, res) => {
router.get('/realdebrid/:apiKey/:infoHash/:fileIndex?', (req, res) => {
const { apiKey, infoHash, fileIndex } = req.params;
console.time(infoHash);
realDebrid.unrestrict(apiKey, infoHash, isNaN(fileIndex) ? undefined : parseInt(fileIndex))
.then(url => {
console.timeEnd(infoHash);
res.writeHead(301, {
'Location': url,
'Cache-Control': 'max-age=7200, public'
});
res.writeHead(301, { Location: url });
res.end();
})
.catch(error => {