diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/csv/csv.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/csv/csv.go b/modules/csv/csv.go index 35486edd88..30698830a4 100644 --- a/modules/csv/csv.go +++ b/modules/csv/csv.go @@ -31,6 +31,9 @@ func CreateReaderAndGuessDelimiter(rd io.Reader) (*stdcsv.Reader, error) { var data = make([]byte, 1e4) size, err := rd.Read(data) if err != nil { + if err == io.EOF { + return CreateReader(bytes.NewReader([]byte{}), rune(',')), nil + } return nil, err } |