Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit b207fd1

Browse files
theScrabiabelgardep
authored andcommitted
fix rellative redirect
1 parent dac7bcc commit b207fd1

File tree

1 file changed

+2
-2
lines changed
  • owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/status

1 file changed

+2
-2
lines changed

owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/status/StatusRequester.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ internal class StatusRequester {
5353
}
5454

5555
private fun getGetMethod(url: String): GetMethod {
56-
return GetMethod(URL(url + OwnCloudClient.STATUS_PATH)).apply {
56+
return GetMethod(URL(url)).apply {
5757
setReadTimeout(TRY_CONNECTION_TIMEOUT, TimeUnit.SECONDS)
5858
setConnectionTimeout(TRY_CONNECTION_TIMEOUT, TimeUnit.SECONDS)
5959
}
@@ -67,7 +67,7 @@ internal class StatusRequester {
6767
)
6868

6969
fun requestAndFollowRedirects(baseLocation: String, client: OwnCloudClient): RequestResult {
70-
var currentLocation = baseLocation
70+
var currentLocation = baseLocation + OwnCloudClient.STATUS_PATH
7171
var redirectedToUnsecureLocation = false
7272
var status: Int
7373

0 commit comments

Comments
 (0)