mirror of
https://github.com/hmalik144/EasyCC_Master.git
synced 2026-01-31 02:41:47 +00:00
Bug fix of Freshdesk #5521 "Api key missing in url"
This commit is contained in:
@@ -20,8 +20,8 @@ interface CurrencyApi {
|
||||
) : CurrencyApi{
|
||||
|
||||
val okkHttpclient = OkHttpClient.Builder()
|
||||
.addNetworkInterceptor(networkConnectionInterceptor)
|
||||
.addInterceptor(queryInterceptor)
|
||||
.addNetworkInterceptor(networkConnectionInterceptor)
|
||||
.build()
|
||||
|
||||
return Retrofit.Builder()
|
||||
|
||||
@@ -20,7 +20,7 @@ class QueryInterceptor() : Interceptor {
|
||||
val originalHttpUrl: HttpUrl = original.url()
|
||||
|
||||
val url = originalHttpUrl.newBuilder()
|
||||
.addQueryParameter("apikey", BuildConfig.CC_API_KEY)
|
||||
.addQueryParameter("apiKey", BuildConfig.CC_API_KEY)
|
||||
.build()
|
||||
|
||||
// Add amended Url back to request
|
||||
|
||||
Reference in New Issue
Block a user