Update main.py

Changed line 243: "text/plain" to "text/csv"