diff --git a/src/server/handler/download.py b/src/server/handler/download.py index 4687d2ab9..bd0bd2e94 100644 --- a/src/server/handler/download.py +++ b/src/server/handler/download.py @@ -59,7 +59,9 @@ async def downloadTrack(self, request: web.Request) -> web.Response: res = web.FileResponse(pathAndName, headers=MultiDict({"Content-Disposition": f"Attachment;filename={filename}.mp3"})) - # TODO return res? + # NOTE, not: + # return res + # because we need to remove the file after it has been sent await res.prepare(request) await res.write_eof()