Apply suggestions from code review

Co-authored-by: Jonathan Barrow <jonbarrow1998@gmail.com>
This commit is contained in:
William Oldham 2025-01-08 09:11:38 +00:00 committed by GitHub
parent 6f292b6321
commit aae243519d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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');

View File

@ -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',