mirror of
https://github.com/PretendoNetwork/BOSS.git
synced 2026-04-23 07:27:27 -05:00
chore: this newline makes the difference
This commit is contained in:
parent
f5672f7b75
commit
59c19c031f
|
|
@ -13,6 +13,7 @@ npdi.get('/p01/data/1/:bossAppId/:dataId/:fileHash', async (request, response) =
|
|||
if (!file) {
|
||||
return response.sendStatus(404);
|
||||
}
|
||||
|
||||
if (file.hash !== fileHash || file.boss_app_id !== bossAppId) {
|
||||
return response.sendStatus(404);
|
||||
}
|
||||
|
|
@ -21,6 +22,7 @@ npdi.get('/p01/data/1/:bossAppId/:dataId/:fileHash', async (request, response) =
|
|||
if (!fileStream) {
|
||||
throw new Error('File not found in CDN');
|
||||
}
|
||||
|
||||
return streamFileToResponse(response, fileStream, {
|
||||
// * The misspelling here is intentional, it's what the official server sets
|
||||
'Content-Type': 'applicatoin/octet-stream',
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user