File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
src/main/kotlin/io/ionic/libs/ionfiletransferlib Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ import io.ionic.libs.ionfiletransferlib.helpers.assertSuccessHttpResponse
99import io.ionic.libs.ionfiletransferlib.helpers.runCatchingIONFLTRExceptions
1010import io.ionic.libs.ionfiletransferlib.helpers.use
1111import io.ionic.libs.ionfiletransferlib.model.IONFLTRDownloadOptions
12- import io.ionic.libs.ionfiletransferlib.model.IONFLTRException
1312import io.ionic.libs.ionfiletransferlib.model.IONFLTRProgressStatus
1413import io.ionic.libs.ionfiletransferlib.model.IONFLTRTransferComplete
1514import io.ionic.libs.ionfiletransferlib.model.IONFLTRTransferResult
@@ -186,9 +185,7 @@ class IONFLTRController internal constructor(
186185 BufferedOutputStream (fileOut).use { outputStream ->
187186 val buffer = ByteArray (BUFFER_SIZE )
188187 var bytesRead: Int
189- val lengthComputable = connection.contentEncoding.let {
190- it == null || it.equals(" gzip" , ignoreCase = true )
191- } && contentLength > 0
188+ val lengthComputable = contentLength > 0
192189 var totalBytesRead: Long = 0
193190
194191 while (inputStream.read(buffer).also { bytesRead = it } != - 1 ) {
You can’t perform that action at this time.
0 commit comments