Skip to content

Commit fde1148

Browse files
Attempt to fix crash related to (missing) trailing slashes
1 parent 020773e commit fde1148

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/kotlin/at/bitfire/dav4jvm/ktor/Response.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ data class Response(
199199

200200
else -> {
201201
if (location.protocol.name == href.protocol.name && location.host == href.host && location.port == href.port) {
202-
val locationSegments = location.segments
203-
val hrefSegments = href.segments
202+
val locationSegments = location.rawSegments
203+
val hrefSegments = href.rawSegments
204204

205205
// don't compare trailing slash segment ("")
206206
var nBasePathSegments = locationSegments.size

0 commit comments

Comments
 (0)