Add mandatory property
authorLanius Trolling <lanius@laniustrolling.dev>
Sun, 14 Apr 2024 17:15:02 +0000 (13:15 -0400)
committerLanius Trolling <lanius@laniustrolling.dev>
Sun, 14 Apr 2024 17:15:02 +0000 (13:15 -0400)
src/jvmMain/kotlin/info/mechyrdia/route/ResourceWebDav.kt

index f73543882eac221da8f93434d030cb09c1fc0f24..ed6f05ff19c695daeec4e6cbbdc2e1660fe08d90 100644 (file)
@@ -23,7 +23,7 @@ import java.time.format.DateTimeFormatter
 import java.util.*
 import kotlin.text.String
 
-const val WebDavDomainName = "https://dav.mechyrdia.info"
+const val WebDavDomainName = "http://localhost:8180"
 
 private val dateTimeFormatter = DateTimeFormatter.ISO_OFFSET_DATE_TIME
 
@@ -64,6 +64,7 @@ operator fun WebDavProperties.unaryPlus() = "response" {
                        if (this@unaryPlus is WebDavProperties.Leaf) {
                                "getcontentlength" { +"$contentLength" }
                                "getcontenttype" { +"${contentType.withoutParameters()}" }
+                               "resourcetype"()
                        } else {
                                "resourcetype" { "collection"() }
                        }