Update WebDav.kt

This commit is contained in:
Xwite 2023-03-06 17:51:47 +08:00 committed by GitHub
parent 406e32de64
commit 34cd1c28f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,7 @@ import java.time.format.DateTimeFormatter
@Suppress("unused", "MemberVisibilityCanBePrivate")
open class WebDav(
val path: String,
val authorization: Authorization = Authorization(serverID),
val authorization: Authorization = Authorization(AnalyzeUrl(path).serverID),
private val serverID: Long? = AnalyzeUrl(path).serverID
) {
companion object {
@ -401,4 +401,4 @@ open class WebDav(
return "$url,{serverID:$serverID}"
}
}
}