mirror of
https://github.com/rommapp/romm.git
synced 2026-12-02 18:18:47 +01:00
Fix rom.name char error
This commit is contained in:
@@ -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),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user