use comma deliminator

This commit is contained in:
Hayden 2023-04-01 12:21:05 -08:00
parent c41a43d804
commit 0e48256b77
No known key found for this signature in database
GPG key ID: 17CF79474E257545

View file

@ -261,7 +261,9 @@ func (ctrl *V1Controller) HandleItemsExport() errchain.HandlerFunc {
w.Header().Set("Content-Type", "text/tsv") w.Header().Set("Content-Type", "text/tsv")
w.Header().Set("Content-Disposition", "attachment;filename=homebox-items.tsv") w.Header().Set("Content-Disposition", "attachment;filename=homebox-items.tsv")
writer := csv.NewWriter(w) writer := csv.NewWriter(w)
writer.Comma = '\t'
return writer.WriteAll(csvData) return writer.WriteAll(csvData)
} }
} }