This commit is contained in:
Your Name 2025-03-23 13:31:48 +03:00
parent afa6a3d112
commit 2fd92d58a2

View file

@ -35,7 +35,7 @@ public class GetRequest {
Call call = client.newCall(request); Call call = client.newCall(request);
call.enqueue(new Callback() { call.enqueue(new Callback() {
public void onResponse(@NonNull Call call, @NonNull Response response) throws IOException { public void onResponse(@NonNull Call call, @NonNull Response response) throws IOException {
onGetExecute(response.body() != null ? response.body().string() : ""); onGetExecute(response.peekBody(Long.MAX_VALUE).string());
} }
public void onFailure(@NonNull Call call, @NonNull IOException e) { public void onFailure(@NonNull Call call, @NonNull IOException e) {