Skip to content

Commit

Permalink
new, server: fix #61
Browse files Browse the repository at this point in the history
  • Loading branch information
dxstiny committed Feb 5, 2023
1 parent 56800c9 commit ac5dc1b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/server/handler/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ac5dc1b

Please sign in to comment.