mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
[addon] return 302 instead of 301 for resolved links
This commit is contained in:
@@ -73,7 +73,7 @@ router.get('/realdebrid/:apiKey/:infoHash/:cachedFileIds/:fileIndex?', (req, res
|
||||
const { apiKey, infoHash, cachedFileIds, fileIndex } = req.params;
|
||||
realDebrid.resolve(apiKey, infoHash, cachedFileIds, isNaN(fileIndex) ? undefined : parseInt(fileIndex))
|
||||
.then(url => {
|
||||
res.writeHead(301, { Location: url });
|
||||
res.writeHead(302, { Location: url });
|
||||
res.end();
|
||||
})
|
||||
.catch(error => {
|
||||
|
||||
Reference in New Issue
Block a user