This repository was archived by the owner on Mar 19, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/http Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change 31
31
import okhttp3 .Cookie ;
32
32
import okhttp3 .CookieJar ;
33
33
import okhttp3 .HttpUrl ;
34
+ import okhttp3 .Interceptor ;
34
35
import okhttp3 .OkHttpClient ;
35
36
import okhttp3 .Protocol ;
36
37
import okhttp3 .TlsVersion ;
@@ -58,7 +59,7 @@ public class HttpClient {
58
59
private static Context sContext ;
59
60
private static HashMap <String , List <Cookie >> sCookieStore = new HashMap <>();
60
61
private static LogInterceptor sLogInterceptor ;
61
- private static DebugInterceptor sDebugInterceptor ;
62
+ private static Interceptor sDebugInterceptor ;
62
63
63
64
public static OkHttpClient getOkHttpClient () {
64
65
if (sOkHttpClient == null ) {
@@ -131,13 +132,6 @@ public static LogInterceptor getLogInterceptor() {
131
132
return sLogInterceptor ;
132
133
}
133
134
134
- public static DebugInterceptor getDebugInterceptor () {
135
- if (sDebugInterceptor == null ) {
136
- sDebugInterceptor = new DebugInterceptor ();
137
- }
138
- return sDebugInterceptor ;
139
- }
140
-
141
135
public static List <Cookie > getCookiesFromUrl (HttpUrl httpUrl ) {
142
136
return sCookieStore .get (httpUrl .host ());
143
137
}
You can’t perform that action at this time.
0 commit comments