mirror of
https://github.com/PretendoNetwork/BOSS.git
synced 2026-07-03 16:40:51 -05:00
Apply suggestions from code review
Co-authored-by: Jonathan Barrow <jonbarrow1998@gmail.com>
This commit is contained in:
parent
6f292b6321
commit
aae243519d
|
|
@ -17,7 +17,7 @@ const streams = {
|
|||
function getCurrentTimestamp(): string {
|
||||
const date = new Date();
|
||||
const year = date.getFullYear();
|
||||
const month = String(date.getMonth() + 1).padStart(2, '0'); // Months are 0-indexed
|
||||
const month = String(date.getMonth() + 1).padStart(2, '0'); // * Months are 0-indexed
|
||||
const day = String(date.getDate()).padStart(2, '0');
|
||||
const hours = String(date.getHours()).padStart(2, '0');
|
||||
const minutes = String(date.getMinutes()).padStart(2, '0');
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ npdi.get('/p01/data/1/:titleHash/:dataID/:fileHash', (request, response) => {
|
|||
|
||||
response.sendFile(contentPath, {
|
||||
headers: {
|
||||
// The misspelling here is intentional, it's what the official server sets
|
||||
// * The misspelling here is intentional, it's what the official server sets
|
||||
'Content-Type': 'applicatoin/octet-stream',
|
||||
'Content-Disposition': 'attachment',
|
||||
'Content-Transfer-Encoding': 'binary',
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user