This commit is contained in:
Team3
2026-06-01 14:03:59 +02:00
parent 7b158dce4e
commit aedb44ac6e
2 changed files with 27 additions and 6 deletions

View File

@@ -75,7 +75,7 @@ async def download_html(guide_id: str):
html_path, _ = final_paths(guide["topic"], guide["format"])
if not html_path.exists():
raise HTTPException(404, "Datei nicht gefunden")
return FileResponse(html_path, filename=html_path.name, media_type="text/html")
return FileResponse(html_path, media_type="text/html", content_disposition_type="inline")
@router.post("/guides/{guide_id}/rework")