We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b3a4ff commit 04e4da7Copy full SHA for 04e4da7
okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt
@@ -323,6 +323,9 @@ class HttpLoggingInterceptor
323
}
324
325
private fun sanitizeUrl(url: HttpUrl): String {
326
+ if (queryParamsNameToRedact.isEmpty()) {
327
+ return url.toString()
328
+ }
329
val params = ArrayList<Pair<String, String>>()
330
for (parameterName in url.queryParameterNames) {
331
params.add(
0 commit comments