mirror of
https://github.com/owncloud/android-library.git
synced 2026-08-17 11:22:54 +00:00
Update GetMethod to be used in GetRemoteUserInfoOperation
This commit is contained in:
@@ -8,18 +8,18 @@ import okhttp3.Response;
|
||||
|
||||
public class GetMethod extends HttpMethod {
|
||||
|
||||
public GetMethod(OkHttpClient okHttpClient, Request requestBase) {
|
||||
super(okHttpClient, requestBase);
|
||||
public GetMethod(OkHttpClient okHttpClient, Request baseRequest) {
|
||||
super(okHttpClient, baseRequest);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int execute() throws IOException {
|
||||
final Request request = mBaseRequest
|
||||
mRequest = mBaseRequest
|
||||
.newBuilder()
|
||||
.get()
|
||||
.build();
|
||||
|
||||
mResponse = mOkHttpClient.newCall(request).execute();
|
||||
mResponse = mOkHttpClient.newCall(mRequest).execute();
|
||||
return mResponse.code();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user