commands/http: Documented MultiFileReader
Matt Bell committed
Nov 17, 2014 at 03:25 UTC
c9abc6b546c11d94f3d21a0447ec2d6f70dc3833
1 file changed
+1
-1
commands/http/multifilereader.go
+1
-1
@@ -41,7 +41,7 @@ func NewMultiFileReader(file cmds.File, form bool) *MultiFileReader {
41
}
42
43
func (mfr *MultiFileReader) Read(buf []byte) (written int, err error) {
44
- // if we are closed, end reading
44
+ // if we are closed and the buffer is flushed, end reading
45
if mfr.closed && mfr.buf.Len() == 0 {
46
return 0, io.EOF
47
}