From 2fd92d58a23c6b67c2bd89515680858b0dbdcc40 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 23 Mar 2025 13:31:48 +0300 Subject: [PATCH] test --- app/src/main/java/com/example/notifyservice/GetRequest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/example/notifyservice/GetRequest.java b/app/src/main/java/com/example/notifyservice/GetRequest.java index 5f8edfe..e3b5304 100644 --- a/app/src/main/java/com/example/notifyservice/GetRequest.java +++ b/app/src/main/java/com/example/notifyservice/GetRequest.java @@ -35,7 +35,7 @@ public class GetRequest { Call call = client.newCall(request); call.enqueue(new Callback() { 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) {