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 +1
-6
lines changed
owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/http Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change 26
26
27
27
import android .content .Context ;
28
28
29
- import com .owncloud .android .lib .BuildConfig ;
30
29
import com .owncloud .android .lib .common .network .AdvancedX509TrustManager ;
31
30
import com .owncloud .android .lib .common .network .NetworkUtils ;
32
31
import okhttp3 .Cookie ;
@@ -112,6 +111,7 @@ public List<Cookie> loadForRequest(HttpUrl url) {
112
111
};
113
112
114
113
OkHttpClient .Builder clientBuilder = new OkHttpClient .Builder ()
114
+ .addInterceptor (getLogInterceptor ())
115
115
.protocols (Arrays .asList (Protocol .HTTP_1_1 ))
116
116
.readTimeout (HttpConstants .DEFAULT_DATA_TIMEOUT , TimeUnit .MILLISECONDS )
117
117
.writeTimeout (HttpConstants .DEFAULT_DATA_TIMEOUT , TimeUnit .MILLISECONDS )
@@ -123,11 +123,6 @@ public List<Cookie> loadForRequest(HttpUrl url) {
123
123
// TODO: Not verifying the hostname against certificate. ask owncloud security human if this is ok.
124
124
//.hostnameVerifier(new BrowserCompatHostnameVerifier());
125
125
126
- // Http logs enabled only in debug version. TODO: Add an option to enable and disable it.
127
- if (BuildConfig .DEBUG ) {
128
- clientBuilder .addInterceptor (getLogInterceptor ());
129
- }
130
-
131
126
sOkHttpClient = clientBuilder .build ();
132
127
133
128
} catch (Exception e ) {
You can’t perform that action at this time.
0 commit comments