From 85a3918ff1fac944ed2513bf92f86c869ebed3be Mon Sep 17 00:00:00 2001 From: Christian Schabesberger Date: Fri, 8 Oct 2021 14:51:51 +0200 Subject: [PATCH] fix usage of debug interceptor --- .../owncloud/android/lib/common/http/HttpClient.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/http/HttpClient.java b/owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/http/HttpClient.java index 989e8209..6172a9a3 100644 --- a/owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/http/HttpClient.java +++ b/owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/http/HttpClient.java @@ -31,6 +31,7 @@ import com.owncloud.android.lib.common.network.NetworkUtils; import okhttp3.Cookie; import okhttp3.CookieJar; import okhttp3.HttpUrl; +import okhttp3.Interceptor; import okhttp3.OkHttpClient; import okhttp3.Protocol; import okhttp3.TlsVersion; @@ -58,7 +59,7 @@ public class HttpClient { private static Context sContext; private static HashMap> sCookieStore = new HashMap<>(); private static LogInterceptor sLogInterceptor; - private static DebugInterceptor sDebugInterceptor; + private static Interceptor sDebugInterceptor; public static OkHttpClient getOkHttpClient() { if (sOkHttpClient == null) { @@ -131,13 +132,6 @@ public class HttpClient { return sLogInterceptor; } - public static DebugInterceptor getDebugInterceptor() { - if (sDebugInterceptor == null) { - sDebugInterceptor = new DebugInterceptor(); - } - return sDebugInterceptor; - } - public static List getCookiesFromUrl(HttpUrl httpUrl) { return sCookieStore.get(httpUrl.host()); }