You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I agree that exist problem with this and easy set filename to download or add right ['Content-disposition']
I guesing that here was try to set both ['Content-disposition'] and ['content-type']
With this hard is to realize plain/text as txt/csv to show in browser and download as view to set extension as .txt or .csv (instead of autodownload - it's important in case API should provide some tables to usage instaed of json/xml).
Is it an issue with my code or a bug of
django-rest-framework-csv
?Adding
response['content-type'] = 'text/csv'
wouldn't help.The text was updated successfully, but these errors were encountered: