Add workaround for KT-54318
This commit is contained in:
committed by
teamcity
parent
5c1eaa6fa4
commit
e290fa5f7b
+2
-1
@@ -41,7 +41,8 @@ fun Project.probeRemoteFileLength(url: String, probingTimeoutMs: Int = 0): Long?
|
||||
throw e
|
||||
else {
|
||||
logger.kotlinDebug(::probeRemoteFileLength.name + "($url, $probingTimeoutMs): Failed to obtain content-length during the probing timeout.")
|
||||
null
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
null as Long?
|
||||
}
|
||||
} finally {
|
||||
connection.disconnect()
|
||||
|
||||
Reference in New Issue
Block a user