pull/1067/head
gedoor 3 years ago
parent 20a8e6bc95
commit 4a7cfa7d86
  1. 2
      app/src/main/java/io/legado/app/lib/webdav/WebDav.kt

@ -7,6 +7,7 @@ import okhttp3.*
import okhttp3.MediaType.Companion.toMediaType import okhttp3.MediaType.Companion.toMediaType
import okhttp3.RequestBody.Companion.asRequestBody import okhttp3.RequestBody.Companion.asRequestBody
import okhttp3.RequestBody.Companion.toRequestBody import okhttp3.RequestBody.Companion.toRequestBody
import org.intellij.lang.annotations.Language
import org.jsoup.Jsoup import org.jsoup.Jsoup
import java.io.File import java.io.File
import java.io.InputStream import java.io.InputStream
@ -19,6 +20,7 @@ import java.util.*
class WebDav(urlStr: String) { class WebDav(urlStr: String) {
companion object { companion object {
// 指定返回哪些属性 // 指定返回哪些属性
@Language("xml")
private const val DIR = private const val DIR =
"""<?xml version="1.0"?> """<?xml version="1.0"?>
<a:propfind xmlns:a="DAV:"> <a:propfind xmlns:a="DAV:">

Loading…
Cancel
Save