Cheers,

Working code:
response.headers['Content-Type'] = "application/octet-stream"
response.headers['Content-Disposition'] = 'attachment; filename=%s' % 
filename
return content

Reply via email to