1
0
mirror of https://github.com/owncloud/android-library.git synced 2026-08-21 21:33:08 +00:00

Add user agent in all the request

This commit is contained in:
masensio
2015-03-13 13:53:36 +01:00
parent a1420ab00e
commit fc07af2364
16 changed files with 72 additions and 25 deletions
@@ -75,6 +75,7 @@ public class GetRemoteStatusOperation extends RemoteOperation {
String baseUrlSt = client.getBaseUri().toString();
try {
get = new GetMethod(baseUrlSt + AccountUtils.STATUS_PATH);
get.addRequestHeader(USER_AGENT_HEADER, getUserAgent());
client.setFollowRedirects(false);
boolean isRedirectToNonSecureConnection = false;