X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/0bef9fdedb6701785f958e034af48c9a671e9a7a..b22e231909c285f47998f5e13cd090ba07fb0404:/src/com/owncloud/android/operations/GetServerInfoOperation.java diff --git a/src/com/owncloud/android/operations/GetServerInfoOperation.java b/src/com/owncloud/android/operations/GetServerInfoOperation.java index e081d4eb..712e7d5c 100644 --- a/src/com/owncloud/android/operations/GetServerInfoOperation.java +++ b/src/com/owncloud/android/operations/GetServerInfoOperation.java @@ -23,6 +23,7 @@ package com.owncloud.android.operations; import java.util.ArrayList; +import com.owncloud.android.MainApp; import com.owncloud.android.authentication.AccountUtils; import com.owncloud.android.lib.common.OwnCloudClient; import com.owncloud.android.lib.common.operations.RemoteOperation; @@ -78,7 +79,7 @@ public class GetServerInfoOperation extends RemoteOperation { // first: check the status of the server (including its version) GetRemoteStatusOperation getStatus = new GetRemoteStatusOperation(mContext); - RemoteOperationResult result = getStatus.execute(client); + RemoteOperationResult result = getStatus.execute(client, MainApp.getUserAgent()); if (result.isSuccess()) { // second: get authentication method required by the server @@ -106,7 +107,7 @@ public class GetServerInfoOperation extends RemoteOperation { Log_OC.d(TAG, "Trying empty authorization to detect authentication method"); DetectAuthenticationMethodOperation operation = new DetectAuthenticationMethodOperation(mContext); - return operation.execute(client); + return operation.execute(client, MainApp.getUserAgent()); }