From 5861164e6c5acfd0385ffe4bb2b322bb6451015e Mon Sep 17 00:00:00 2001 From: Fahim Salam Chowdhury Date: Tue, 28 Mar 2023 16:59:39 +0600 Subject: [PATCH] 6790-Allow_always_redirect_in_nc_api_calls issue: https://gitlab.e.foundation/e/backlog/-/issues/6790 --- .../java/com/nextcloud/android/sso/InputStreamBinder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/nextcloud/android/sso/InputStreamBinder.java b/app/src/main/java/com/nextcloud/android/sso/InputStreamBinder.java index 9ca400d2d..3b81f2339 100644 --- a/app/src/main/java/com/nextcloud/android/sso/InputStreamBinder.java +++ b/app/src/main/java/com/nextcloud/android/sso/InputStreamBinder.java @@ -360,7 +360,7 @@ public class InputStreamBinder extends IInputStreamService.Stub { } } - client.setFollowRedirects(request.isFollowRedirects()); + client.setFollowRedirects(true); int status = client.executeMethod(method); // Check if status code is 2xx --> https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#2xx_Success @@ -428,7 +428,7 @@ public class InputStreamBinder extends IInputStreamService.Stub { } } - client.setFollowRedirects(request.isFollowRedirects()); + client.setFollowRedirects(true); int status = client.executeMethod(method); // Check if status code is 2xx --> https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#2xx_Success -- GitLab