Revert "fix: Correct typo in Content-Type header value" and add comment

This reverts commit 9fff2a4bf7.
This commit is contained in:
William Oldham 2025-01-07 15:08:09 +00:00
parent 9fff2a4bf7
commit 6f292b6321

View File

@ -11,7 +11,8 @@ npdi.get('/p01/data/1/:titleHash/:dataID/:fileHash', (request, response) => {
response.sendFile(contentPath, {
headers: {
'Content-Type': 'application/octet-stream',
// The misspelling here is intentional, it's what the official server sets
'Content-Type': 'applicatoin/octet-stream',
'Content-Disposition': 'attachment',
'Content-Transfer-Encoding': 'binary',
}