This commit is contained in:
Xwite
2023-03-17 09:53:06 +08:00
parent a64bab36ac
commit ac4b1e3bb1
@@ -89,6 +89,7 @@ object UrlUtil {
} }
} }
} }
AppLog.put("${url.toString()} response header:\n$headersString")
} }
// val fileSize = conn.getContentLengthLong() / 1024 // val fileSize = conn.getContentLengthLong() / 1024
@@ -125,7 +126,7 @@ object UrlUtil {
val newUrl= URL(URLDecoder.decode(redirectUrl, "UTF-8")) val newUrl= URL(URLDecoder.decode(redirectUrl, "UTF-8"))
getFileNameFromPath(newUrl) getFileNameFromPath(newUrl)
} else { } else {
AppLog.put("Cannot obtain URL file name, enable recordLog fo rdetail") AppLog.put("Cannot obtain URL file name, enable recordLog for detail")
null null
} }
} }