Update main.py
Browse files
main.py
CHANGED
|
@@ -147,7 +147,7 @@ async def convert_html_to_docx(input_data: HTMLInput):
|
|
| 147 |
return fastapi.responses.Response(
|
| 148 |
content=file_contents,
|
| 149 |
media_type="application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
| 150 |
-
headers={"Content-Disposition": "attachment; filename=html-converted
|
| 151 |
)
|
| 152 |
except Exception as e:
|
| 153 |
raise HTTPException(status_code=500, detail=str(e))
|
|
|
|
| 147 |
return fastapi.responses.Response(
|
| 148 |
content=file_contents,
|
| 149 |
media_type="application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
| 150 |
+
headers={"Content-Disposition": "attachment; filename=html-converted.docx"}
|
| 151 |
)
|
| 152 |
except Exception as e:
|
| 153 |
raise HTTPException(status_code=500, detail=str(e))
|