From afa6a3d1127389611c56c1b7e2ea82ea63f9f013 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 23 Mar 2025 13:31:23 +0300 Subject: [PATCH] test --- app/src/main/java/com/example/notifyservice/PostRequest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/example/notifyservice/PostRequest.java b/app/src/main/java/com/example/notifyservice/PostRequest.java index fa4d1e5..1b9d4ba 100644 --- a/app/src/main/java/com/example/notifyservice/PostRequest.java +++ b/app/src/main/java/com/example/notifyservice/PostRequest.java @@ -51,8 +51,8 @@ public class PostRequest { Call call = client.newCall(request); call.enqueue(new Callback() { public void onResponse(@NonNull Call call, @NonNull Response response) throws IOException { - Log.i("RESP", response.body() != null ? response.body().string() : ""); // STATIC - onPostExecute(response.body() != null ? response.body().string() : ""); + Log.i("RESP", response.peekBody(Long.MAX_VALUE).string()); // STATIC + onPostExecute(response.peekBody(Long.MAX_VALUE).string()); } public void onFailure(@NonNull Call call, @NonNull IOException e) {