This commit is contained in:
Kenneth Kehl
2024-08-08 13:11:58 -07:00
parent ee1dcdeb03
commit 38a6c35afd
2 changed files with 34 additions and 1 deletions

View File

@@ -100,7 +100,7 @@ def download_all_users():
csv_data = output.getvalue()
# Create a direct download response with the CSV data and appropriate headers
response = Response(csv_data, content_type="text/csv")
response = Response(csv_data, content_type="text/csv; charset=utf-8")
response.headers["Content-Disposition"] = "attachment; filename=users.csv"
return response