This commit is contained in:
chrislu 2022-08-18 23:51:08 -07:00
parent b6f99c4d83
commit 58dd880322

View file

@ -331,7 +331,9 @@ func ReadUrlAsStream(fileUrl string, cipherKey []byte, isContentGzipped bool, is
for {
m, err = reader.Read(buf)
fn(buf[:m])
if m > 0 {
fn(buf[:m])
}
if err == io.EOF {
return false, nil
}