Revert "Properly set content-type when Range header is present"

This reverts commit 5c002f7ff2.
This commit is contained in:
Alice Gaudon 2020-11-20 13:38:47 +01:00
parent bea4325aa4
commit 18f3f93db6
1 changed files with 1 additions and 9 deletions

View File

@ -110,16 +110,8 @@ export default class GiteaRepoLatestReleaseController extends Controller {
await promisify(fs.rename)(tmpAssetPath, assetPath);
}
const options: Record<string, unknown> = {};
if (req.header('Range')) {
options.headers = {
'Content-Type': 'multipart/byteranges',
};
}
// Respond
return res.download(assetPath, downloadProperties.asset.name, options);
return res.download(assetPath, downloadProperties.asset.name);
}
}