Skip to content

Commit

Permalink
Merge pull request #876 from vincywindy/master
Browse files Browse the repository at this point in the history
Fix rom.name char error
  • Loading branch information
zurdi15 committed May 24, 2024
2 parents baaf34e + c711b45 commit a71563f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/endpoints/rom.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def head_rom_content(request: Request, id: int, file_name: str):
path=rom_path if not rom.multi else f"{rom_path}/{rom.files[0]}",
filename=file_name,
headers={
"Content-Disposition": f'attachment; filename="{rom.name}.zip"',
"Content-Disposition": f'attachment; filename="{quote(rom.name)}.zip"',
"Content-Type": "application/zip",
"Content-Length": str(rom.file_size_bytes),
},
Expand Down

0 comments on commit a71563f

Please sign in to comment.