diff --git a/import/import.go b/import/import.go index 1a79870..dfc7cd8 100644 --- a/import/import.go +++ b/import/import.go @@ -223,6 +223,9 @@ func (i *ImportReader) Close() error { func (i *ImportReader) Read(p []byte) (n int, err error) { n, err = i.reader.Read(p) if err != nil { + if err == io.EOF { + return n, err + } return 0, err }