Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nmcardoso committed Jul 28, 2024
1 parent 9d78d72 commit e7e97e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ def plot():
print('>>> Save duration:', str(datetime.now() - save_start_time))
print('>>> Total plot duration:', str(datetime.now() - plot_start_time))

return send_file(buff, mimetype='image/jpeg', as_attachment=False)
return send_file(buff, mimetype='image/jpeg', as_attachment=True, download_name='plot')
# return web.Response(body=buff.read(), headers={'Content-Type': 'image/jpg'})
# response = web.StreamResponse(headers={'Content-Type': 'image/jpg'})
# await response.prepare(request)
Expand Down

0 comments on commit e7e97e5

Please sign in to comment.