mirror of
				https://github.com/owncloud/android-library.git
				synced 2025-10-31 18:37:17 +00:00 
			
		
		
		
	fix rellative redirect
This commit is contained in:
		
							parent
							
								
									40359e342e
								
							
						
					
					
						commit
						27839cad87
					
				| @ -53,7 +53,7 @@ internal class StatusRequester { | |||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     private fun getGetMethod(url: String): GetMethod { |     private fun getGetMethod(url: String): GetMethod { | ||||||
|         return GetMethod(URL(url + OwnCloudClient.STATUS_PATH)).apply { |         return GetMethod(URL(url)).apply { | ||||||
|             setReadTimeout(TRY_CONNECTION_TIMEOUT, TimeUnit.SECONDS) |             setReadTimeout(TRY_CONNECTION_TIMEOUT, TimeUnit.SECONDS) | ||||||
|             setConnectionTimeout(TRY_CONNECTION_TIMEOUT, TimeUnit.SECONDS) |             setConnectionTimeout(TRY_CONNECTION_TIMEOUT, TimeUnit.SECONDS) | ||||||
|         } |         } | ||||||
| @ -67,7 +67,7 @@ internal class StatusRequester { | |||||||
|     ) |     ) | ||||||
| 
 | 
 | ||||||
|     fun requestAndFollowRedirects(baseLocation: String, client: OwnCloudClient): RequestResult { |     fun requestAndFollowRedirects(baseLocation: String, client: OwnCloudClient): RequestResult { | ||||||
|         var currentLocation = baseLocation |         var currentLocation = baseLocation + OwnCloudClient.STATUS_PATH | ||||||
|         var redirectedToUnsecureLocation = false |         var redirectedToUnsecureLocation = false | ||||||
|         var status: Int |         var status: Int | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user