api/proxy: add support for proxying range requests

This commit is contained in:
dumbmoron
2024-08-31 07:15:20 +00:00
parent 305d0429f1
commit 2f63f6bab7
2 changed files with 14 additions and 4 deletions

View File

@@ -243,6 +243,11 @@ export const runAPI = (express, app, __dirname) => {
if (!streamInfo?.service) {
return res.status(streamInfo.status).end();
}
if (streamInfo.type === 'proxy') {
streamInfo.range = req.headers['range'];
}
return stream(res, streamInfo);
})