From 03139b2dbde91b863b0d56faea72304b593779d6 Mon Sep 17 00:00:00 2001 From: Andhie Wong Date: Thu, 26 Feb 2015 17:28:53 +0800 Subject: Display Request Payload in Chrome Inspector --- .../src/com/koushikdutta/async/stetho/StethoMiddleware.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'AndroidAsyncStetho/src') diff --git a/AndroidAsyncStetho/src/com/koushikdutta/async/stetho/StethoMiddleware.java b/AndroidAsyncStetho/src/com/koushikdutta/async/stetho/StethoMiddleware.java index 3bf4c4c..883dc8d 100644 --- a/AndroidAsyncStetho/src/com/koushikdutta/async/stetho/StethoMiddleware.java +++ b/AndroidAsyncStetho/src/com/koushikdutta/async/stetho/StethoMiddleware.java @@ -61,7 +61,7 @@ public class StethoMiddleware extends SimpleMiddleware { @Nullable @Override public byte[] body() throws IOException { - return null; + return request.getBody() != null ? request.getBody().toString().getBytes("UTF-8") : null; } @Override -- cgit v1.2.3