diff options
Diffstat (limited to '')
-rw-r--r-- | endpoint_export_choices.go (renamed from endpoint_export.go) | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/endpoint_export.go b/endpoint_export_choices.go index 3c8c36e..890f170 100644 --- a/endpoint_export.go +++ b/endpoint_export_choices.go @@ -27,7 +27,7 @@ import ( "strings" ) -func handleExport(w http.ResponseWriter, req *http.Request) { +func handleExportChoices(w http.ResponseWriter, req *http.Request) { _, _, department, err := getUserInfoFromRequest(req) if err != nil { wstr( @@ -159,7 +159,7 @@ func handleExport(w http.ResponseWriter, req *http.Request) { } w.Header().Set("Content-Type", "text/csv; charset=utf-8") - w.Header().Set("Content-Disposition", "attachment;filename=cca.csv") + w.Header().Set("Content-Disposition", "attachment;filename=cca_choices.csv") csvWriter := csv.NewWriter(w) err = csvWriter.Write([]string{ "Student Name", |