forked from mirrors/homebox
use comma deliminator
This commit is contained in:
parent
c41a43d804
commit
0e48256b77
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue