mirror of
https://github.com/owncloud/android-library.git
synced 2025-06-07 07:56:19 +00:00
fix rellative redirect
This commit is contained in:
parent
dac7bcc0e7
commit
b207fd1c67
@ -53,7 +53,7 @@ internal class StatusRequester {
|
||||
}
|
||||
|
||||
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)
|
||||
setConnectionTimeout(TRY_CONNECTION_TIMEOUT, TimeUnit.SECONDS)
|
||||
}
|
||||
@ -67,7 +67,7 @@ internal class StatusRequester {
|
||||
)
|
||||
|
||||
fun requestAndFollowRedirects(baseLocation: String, client: OwnCloudClient): RequestResult {
|
||||
var currentLocation = baseLocation
|
||||
var currentLocation = baseLocation + OwnCloudClient.STATUS_PATH
|
||||
var redirectedToUnsecureLocation = false
|
||||
var status: Int
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user