diff --git a/write.go b/write.go index 7cbe925..22a23ea 100644 --- a/write.go +++ b/write.go @@ -10,8 +10,6 @@ import ( "github.com/klauspost/compress/gzip" "github.com/klauspost/pgzip" - "golang.org/x/text/cases" - "golang.org/x/text/language" "github.com/klauspost/compress/zstd" uuid "github.com/satori/go.uuid" @@ -87,9 +85,7 @@ func (w *Writer) WriteRecord(r *Record) (recordID string, err error) { } for key, value := range r.Header { - titleCaser := cases.Title(language.English) - value := strings.ReplaceAll(titleCaser.String(key)+": "+value+"\r\n", "Warc", "WARC") - if _, err := io.WriteString(w.FileWriter, value); err != nil { + if _, err := io.WriteString(w.FileWriter, fmt.Sprintf("%s: %s\r\n", key, value)); err != nil { return recordID, err } }