un-flush headers, caused issues

This commit is contained in:
Reid 2026-03-30 19:16:22 -07:00
parent db2332b735
commit 64d681edec
Signed by: reidlab
GPG key ID: DAF5EAF6665839FD
2 changed files with 0 additions and 2 deletions

View file

@ -63,7 +63,6 @@ router.get(path, async (req, res, next) => {
const fileName = formatSongForFs(trackAttributes) + fileExt; const fileName = formatSongForFs(trackAttributes) + fileExt;
res.attachment(fileName); res.attachment(fileName);
res.flushHeaders();
res.sendFile(filePath, { root: "." }); res.sendFile(filePath, { root: "." });
} catch (err) { } catch (err) {

View file

@ -42,7 +42,6 @@ router.get(path, async (req, res, next) => {
const fileName = formatAlbumForFs(albumAttributes) + ".zip"; const fileName = formatAlbumForFs(albumAttributes) + ".zip";
res.attachment(fileName); res.attachment(fileName);
res.flushHeaders();
const zipArchiver = archiver("zip"); const zipArchiver = archiver("zip");
zipArchiver.pipe(res); zipArchiver.pipe(res);