David Li commited on
Commit
4b9b9cb
·
1 Parent(s): 61141e2

fix: try again

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -53,7 +53,7 @@ async def get_file(id: str):
53
  content = output_file.read()
54
  output_file.close()
55
  headers = {
56
- 'Content-Disposition': f'inline; filename="{id}"'
57
  }
58
  bytesio_object = BytesIO(content)
59
  return StreamingResponse(bytesio_object, headers=headers)
 
53
  content = output_file.read()
54
  output_file.close()
55
  headers = {
56
+ 'Content-Disposition': f'attachment; filename="{id}"'
57
  }
58
  bytesio_object = BytesIO(content)
59
  return StreamingResponse(bytesio_object, headers=headers)