diff --git a/src/controllers/GiteaRepoLatestReleaseController.ts b/src/controllers/GiteaRepoLatestReleaseController.ts index 2837eab..b03856c 100644 --- a/src/controllers/GiteaRepoLatestReleaseController.ts +++ b/src/controllers/GiteaRepoLatestReleaseController.ts @@ -110,8 +110,16 @@ export default class GiteaRepoLatestReleaseController extends Controller { await promisify(fs.rename)(tmpAssetPath, assetPath); } + const options: Record = {}; + + if (req.header('Range')) { + options.headers = { + 'Content-Type': 'multipart/byteranges', + }; + } + // Respond - return res.download(assetPath, downloadProperties.asset.name); + return res.download(assetPath, downloadProperties.asset.name, options); } }