Skip to content

Commit

Permalink
Fix record import via some CSV files
Browse files Browse the repository at this point in the history
Some CSV files failed to detect as text/csv so the import failed.
ref: gabriel-vasile/mimetype#138
  • Loading branch information
tjerman authored and darh committed Jan 25, 2021
1 parent c1fe2a8 commit e33bb21
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/envoy/csv/decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ func (y *decoder) CanDecodeMime(m string) bool {
return m == "text/csv"
}

func (y *decoder) CanDecodeMime(m string) bool {
return m == "text/csv"
}

func (y *decoder) CanDecodeExt(ext string) bool {
pt := strings.Split(ext, ".")
return strings.TrimSpace(pt[len(pt)-1]) == "csv"
Expand Down

0 comments on commit e33bb21

Please sign in to comment.