diff --git a/writer.go b/writer.go index 36032d0..7e7703c 100644 --- a/writer.go +++ b/writer.go @@ -75,7 +75,8 @@ func (entry *Entry) writerScanner(reader *io.PipeReader, printFunc func(args ... if len(data) > chunkSize { return chunkSize, data[:chunkSize], nil } - return 0, nil, nil + + return len(data), data, nil } //Use the custom split function to split the input