1
0
mirror of https://github.com/nerzhul/ownCloud-SMS-App.git synced 2025-06-07 16:06:18 +00:00

HTTPClient: Permit circular redirection.

This should fixes #128
This commit is contained in:
Loic Blot 2017-01-18 22:55:36 +01:00
parent f1188819f2
commit bcefc1fdf2

View File

@ -23,6 +23,7 @@ import android.util.Log;
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.HttpMethod;
import org.apache.commons.httpclient.params.HttpClientParams;
import org.apache.commons.httpclient.MultiThreadedHttpConnectionManager;
import org.apache.commons.httpclient.contrib.ssl.EasySSLProtocolSocketFactory;
import org.apache.commons.httpclient.methods.GetMethod;
@ -59,6 +60,7 @@ public class OCHttpClient extends HttpClient {
_serverURI = serverURI;
_username = accountName;
_password = accountPassword;
getParams().setParameter(HttpClientParams.ALLOW_CIRCULAR_REDIRECTS, true);
}
private GetMethod get(String oc_call) {