Revert "Properly set content-type when Range header is present"
This reverts commit 5c002f7ff2
.
This commit is contained in:
parent
bea4325aa4
commit
18f3f93db6
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user