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()); }