Using skipPaths does not work as expected. When using the builder the path is added by using the addPathSegment method on the HttpUrl.Builder, which will escape any slash to %F2. You should use the addPathSegments to allow a full path. Because later the full "encodedPath" of the request url is used to compare.
:writing_hand: Describe the bug
Using
skipPaths
does not work as expected. When using the builder the path is added by using theaddPathSegment
method on theHttpUrl.Builder
, which will escape any slash to%F2
. You should use theaddPathSegments
to allow a full path. Because later the full "encodedPath" of the request url is used to compare.See line https://github.com/ChuckerTeam/chucker/blob/main/library/src/main/kotlin/com/chuckerteam/chucker/api/ChuckerInterceptor.kt#L193 and https://github.com/ChuckerTeam/chucker/blob/main/library/src/main/kotlin/com/chuckerteam/chucker/api/ChuckerInterceptor.kt#L75
:bomb: Steps to reproduce
chucker = "4.0.0"
Result: