mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
WEB-26787 Can't download d.ts file for paper
This commit is contained in:
@@ -205,6 +205,14 @@ public class NetUtils {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (gzipStream != null) {
|
||||
// Amount of read bytes may have changed when 'inputStream.read(buffer)' returns -1
|
||||
// E.g. reading GZIP trailer doesn't produce inflated stream data.
|
||||
bytesRead = gzipStream.getCompressedBytesRead();
|
||||
if (indicator != null && expectedContentLength > 0) {
|
||||
indicator.setFraction((double)bytesRead / expectedContentLength);
|
||||
}
|
||||
}
|
||||
|
||||
if (indicator != null) {
|
||||
indicator.checkCanceled();
|
||||
|
||||
Reference in New Issue
Block a user