diff --git a/app/src/main/kotlin/com/github/gotify/CoilInstance.kt b/app/src/main/kotlin/com/github/gotify/CoilInstance.kt index 9c0dd78..21adaa6 100644 --- a/app/src/main/kotlin/com/github/gotify/CoilInstance.kt +++ b/app/src/main/kotlin/com/github/gotify/CoilInstance.kt @@ -108,15 +108,12 @@ private class BasicAuthInterceptor : Interceptor { // If there's no username, skip the authentication if (request.url.username.isNotEmpty()) { - val basicAuthString = "${request.url.username}:${request.url.password}@" - val url = request.url.toString().replace(basicAuthString, "") request = request .newBuilder() .header( "Authorization", Credentials.basic(request.url.username, request.url.password) ) - .url(url) .build() } return chain.proceed(request)