We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fde1148 commit 03040abCopy full SHA for 03040ab
src/main/kotlin/at/bitfire/dav4jvm/ktor/Response.kt
@@ -204,7 +204,7 @@ data class Response(
204
205
// don't compare trailing slash segment ("")
206
var nBasePathSegments = locationSegments.size
207
- if (locationSegments[nBasePathSegments - 1] == "") // TODO: Ricki, Not sure if this is still needed
+ if (locationSegments.isNotEmpty() && location.rawSegments.last() == "")
208
nBasePathSegments--
209
210
/* example: locationSegments = [ "davCollection", "" ]
0 commit comments