Skip to content

Commit

Permalink
fix: fix image type
Browse files Browse the repository at this point in the history
  • Loading branch information
shonenada committed Feb 25, 2019
1 parent 557f90f commit e03b9da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stalls/modules/poll/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def preview_poll():
return chart.render_response()
png = chart.render_to_png()
response = make_response(png)
response.headers.set('Content-Type', 'image/jpeg')
response.headers.set('Content-Type', 'image/png')
response.headers.set('Content-Disposition', 'attachment',
filename='poll_{}.png'.format(poll_id))
return response
Expand Down

0 comments on commit e03b9da

Please sign in to comment.