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) {