Skip to content

Commit

Permalink
Remove unsafe okhttp client (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
siper authored Sep 4, 2024
1 parent 8dea0cc commit 33c93bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package ru.stersh.youamp.core.api

import android.net.Uri
import com.squareup.moshi.Moshi
import okhttp3.OkHttpClient
import okhttp3.logging.HttpLoggingInterceptor
import retrofit2.Retrofit
import retrofit2.converter.moshi.MoshiConverterFactory
Expand All @@ -28,7 +29,8 @@ class SubsonicApi(
useLegacyAuth
)
private val errorInterceptor = ErrorInterceptor(moshi)
private val client = getUnsafeOkHttpClient()
private val client = OkHttpClient
.Builder()
.addInterceptor(loggingInterceptor)
.addInterceptor(responseInterceptor)
.addInterceptor(errorInterceptor)
Expand Down

This file was deleted.

0 comments on commit 33c93bf

Please sign in to comment.