mirror of
https://github.com/owncloud/android-library.git
synced 2025-06-07 16:06:08 +00:00
apply codereview
This commit is contained in:
parent
61ee5aab91
commit
9ad0e8f9bc
@ -49,8 +49,7 @@ internal class StatusRequester {
|
|||||||
redirectedUrl: String
|
redirectedUrl: String
|
||||||
) = redirectedToUnsecureLocationBefore
|
) = redirectedToUnsecureLocationBefore
|
||||||
|| (baseUrl.startsWith(HTTPS_SCHEME)
|
|| (baseUrl.startsWith(HTTPS_SCHEME)
|
||||||
&& (!redirectedUrl.startsWith(HTTPS_SCHEME))
|
&& !redirectedUrl.startsWith(HTTPS_SCHEME))
|
||||||
&& redirectedUrl.startsWith(HTTP_SCHEME))
|
|
||||||
|
|
||||||
fun updateLocationWithRedirectPath(oldLocation: String, redirectedLocation: String): String {
|
fun updateLocationWithRedirectPath(oldLocation: String, redirectedLocation: String): String {
|
||||||
if (!redirectedLocation.startsWith("/"))
|
if (!redirectedLocation.startsWith("/"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user