mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
@@ -159,7 +159,9 @@ class Coroutine<T>(
|
||||
error?.let { dispatchCallback(this, e, it) }
|
||||
}
|
||||
} finally {
|
||||
finally?.let { dispatchVoidCallback(this, it) }
|
||||
withContext(NonCancellable) {
|
||||
finally?.let { dispatchVoidCallback(this, it) }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@ open class WebDav(val path: String, val authorization: Authorization) {
|
||||
private val webDavClient by lazy {
|
||||
val authInterceptor = Interceptor { chain ->
|
||||
var request = chain.request()
|
||||
if (request.url.host == host) {
|
||||
if (request.url.host.equals(host, true)) {
|
||||
request = request
|
||||
.newBuilder()
|
||||
.header(authorization.name, authorization.data)
|
||||
|
||||
Reference in New Issue
Block a user