File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
app/src/main/java/fr/free/nrw/commons/di Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import dagger.Provides
7
7
import fr.free.nrw.commons.BetaConstants
8
8
import fr.free.nrw.commons.BuildConfig
9
9
import fr.free.nrw.commons.OkHttpConnectionFactory
10
+ import fr.free.nrw.commons.OkHttpConnectionFactory.CommonHeaderRequestInterceptor
10
11
import fr.free.nrw.commons.actions.PageEditClient
11
12
import fr.free.nrw.commons.actions.PageEditInterface
12
13
import fr.free.nrw.commons.actions.ThanksInterface
@@ -60,6 +61,7 @@ class NetworkingModule {
60
61
.connectTimeout(120 , TimeUnit .SECONDS )
61
62
.writeTimeout(120 , TimeUnit .SECONDS )
62
63
.addInterceptor(httpLoggingInterceptor)
64
+ .addInterceptor(CommonHeaderRequestInterceptor ())
63
65
.readTimeout(120 , TimeUnit .SECONDS )
64
66
.cache(Cache (File (context.cacheDir, " okHttpCache" ), OK_HTTP_CACHE_SIZE ))
65
67
.build()
You can’t perform that action at this time.
0 commit comments