pvanand commited on
Commit
bcfbdf1
·
verified ·
1 Parent(s): 2ed8a6c

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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-to-docssx.docx"}
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))