A continuation of HomeBox the inventory and organization system built for the Home User
fix: CSV has wrong file extension (#19)
Katos2111ee182d63
diff --git a/backend/app/api/handlers/v1/v1_ctrl_reporting.go b/backend/app/api/handlers/v1/v1_ctrl_reporting.goindex e19288f0..e51465b3 100644--- a/backend/app/api/handlers/v1/v1_ctrl_reporting.go+++ b/backend/app/api/handlers/v1/v1_ctrl_reporting.go@@ -2,7 +2,6 @@ package v1import ("net/http"-"github.com/hay-kot/httpkit/errchain""github.com/sysadminsmedia/homebox/backend/internal/core/services")@@ -24,8 +23,8 @@ func (ctrl *V1Controller) HandleBillOfMaterialsExport() errchain.HandlerFunc {return err}- w.Header().Set("Content-Type", "text/tsv")- w.Header().Set("Content-Disposition", "attachment; filename=bill-of-materials.tsv")+ w.Header().Set("Content-Type", "text/csv")+ w.Header().Set("Content-Disposition", "attachment; filename=bill-of-materials.csv")_, err = w.Write(csv)return err}