mirror of
				https://github.com/owncloud/android-library.git
				synced 2025-10-31 02:17:41 +00:00 
			
		
		
		
	Fix some downloads by disabling encoding
This commit is contained in:
		
							parent
							
								
									14ec6cb1ee
								
							
						
					
					
						commit
						fabf8d55f0
					
				| @ -125,6 +125,7 @@ public class HttpClient { | ||||
|             sOkHttpInterceptor = new HttpInterceptor(); | ||||
|             addHeaderForAllRequests(HttpConstants.USER_AGENT_HEADER, OwnCloudClientManagerFactory.getUserAgent()); | ||||
|             addHeaderForAllRequests(HttpConstants.PARAM_SINGLE_COOKIE_HEADER, "true"); | ||||
|             addHeaderForAllRequests(HttpConstants.ACCEPT_ENCODING_HEADER, HttpConstants.ACCEPT_ENCODING_IDENTITY); | ||||
|         } | ||||
|         return sOkHttpInterceptor; | ||||
|     } | ||||
|  | ||||
| @ -48,6 +48,8 @@ public class HttpConstants { | ||||
|     public static final String LOCATION_HEADER = "Location"; | ||||
|     public static final String LOCATION_HEADER_LOWER = "location"; | ||||
|     public static final String CONTENT_TYPE_URLENCODED_UTF8 = "application/x-www-form-urlencoded; charset=utf-8"; | ||||
|     public static final String ACCEPT_ENCODING_HEADER = "Accept-Encoding"; | ||||
|     public static final String ACCEPT_ENCODING_IDENTITY = "identity"; | ||||
| 
 | ||||
|     /*********************************************************************************************************** | ||||
|      ************************************************ STATUS CODES ********************************************* | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user