Fix
This commit is contained in:
1 parent
486502852e
commit
0e48ea427b
23 files changed
+386
-78
No files matched your search
@@ -1,7 +1,6 @@
|
||||
package httpapi
|
||||
|
||||
import (
|
||||
"encoding/csv"
|
||||
"net/http"
|
||||
"strconv"
|
||||
|
||||
@@ -23,7 +22,10 @@ func (s *Server) handleBillingUsageExport(w http.ResponseWriter, r *http.Request
|
||||
w.Header().Set("Content-Type", "text/csv; charset=utf-8")
|
||||
w.Header().Set("Content-Disposition", `attachment; filename="descrybe-usage.csv"`)
|
||||
w.Header().Set("Cache-Control", "private, no-store")
|
||||
out := csv.NewWriter(w)
|
||||
out, err := newUTF8CSVWriter(w)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_ = out.Write([]string{"company_id", "range", "metric", "value", "notes"})
|
||||
rows := []struct {
|
||||
label string
|
||||
|
||||
Reference in new issue
Block a user