|  |  | @ -1,7 +1,5 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | package io.legado.app.help.http |  |  |  | package io.legado.app.help.http | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.franmontiel.persistentcookiejar.PersistentCookieJar |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.franmontiel.persistentcookiejar.cache.SetCookieCache |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | import io.legado.app.constant.AppConst |  |  |  | import io.legado.app.constant.AppConst | 
			
		
	
		
		
			
				
					
					|  |  |  | import io.legado.app.help.http.api.HttpGetApi |  |  |  | import io.legado.app.help.http.api.HttpGetApi | 
			
		
	
		
		
			
				
					
					|  |  |  | import io.legado.app.utils.NetworkUtils |  |  |  | import io.legado.app.utils.NetworkUtils | 
			
		
	
	
		
		
			
				
					|  |  | @ -19,8 +17,6 @@ object HttpHelper { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     val client: OkHttpClient by lazy { |  |  |  |     val client: OkHttpClient by lazy { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         val cookieJar = PersistentCookieJar(SetCookieCache(), CookieStore) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         val specs = arrayListOf( |  |  |  |         val specs = arrayListOf( | 
			
		
	
		
		
			
				
					
					|  |  |  |             ConnectionSpec.MODERN_TLS, |  |  |  |             ConnectionSpec.MODERN_TLS, | 
			
		
	
		
		
			
				
					
					|  |  |  |             ConnectionSpec.COMPATIBLE_TLS, |  |  |  |             ConnectionSpec.COMPATIBLE_TLS, | 
			
		
	
	
		
		
			
				
					|  |  | @ -39,7 +35,6 @@ object HttpHelper { | 
			
		
	
		
		
			
				
					
					|  |  |  |             .followSslRedirects(true) |  |  |  |             .followSslRedirects(true) | 
			
		
	
		
		
			
				
					
					|  |  |  |             .protocols(listOf(Protocol.HTTP_1_1)) |  |  |  |             .protocols(listOf(Protocol.HTTP_1_1)) | 
			
		
	
		
		
			
				
					
					|  |  |  |             .addInterceptor(getHeaderInterceptor()) |  |  |  |             .addInterceptor(getHeaderInterceptor()) | 
			
		
	
		
		
			
				
					
					|  |  |  |             .cookieJar(cookieJar) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         builder.build() |  |  |  |         builder.build() | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
	
		
		
			
				
					|  |  | 
 |