1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-07 16:06:08 +00:00

fix redirect with cookie for satatus

This commit is contained in:
Christian Schabesberger 2020-09-17 13:23:09 +02:00
parent 61c6cc8347
commit fc75357b0d

View File

@ -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