pull/1751/head
kunfei 3 years ago
parent fdb563d35d
commit 518781985b
  1. 3
      app/src/main/java/io/legado/app/lib/webdav/WebDav.kt

@ -1,5 +1,6 @@
package io.legado.app.lib.webdav
import io.legado.app.constant.AppLog
import io.legado.app.help.http.newCallResponseBody
import io.legado.app.help.http.okHttpClient
import io.legado.app.help.http.text
@ -168,6 +169,8 @@ class WebDav(urlStr: String) {
addHeader("Authorization", Credentials.basic(auth.user, auth.pass))
}.close()
}
}.onFailure {
AppLog.put(it.localizedMessage)
}.isSuccess
}
return false

Loading…
Cancel
Save