diff options
author | Andhie Wong <andhiewong@gmail.com> | 2015-02-26 17:28:53 +0800 |
---|---|---|
committer | Andhie Wong <andhiewong@gmail.com> | 2015-02-26 17:28:53 +0800 |
commit | 03139b2dbde91b863b0d56faea72304b593779d6 (patch) | |
tree | e477e540d2b1d56ee6f0b179b80240e6b8fc6c97 | |
parent | af5618a96ecab34f04b6ce079d789dda79b49700 (diff) | |
download | AndroidAsync-03139b2dbde91b863b0d56faea72304b593779d6.tar.gz AndroidAsync-03139b2dbde91b863b0d56faea72304b593779d6.tar.bz2 AndroidAsync-03139b2dbde91b863b0d56faea72304b593779d6.zip |
Display Request Payload in Chrome Inspector
-rw-r--r-- | AndroidAsyncStetho/src/com/koushikdutta/async/stetho/StethoMiddleware.java | 2 |
1 files changed, 1 insertions, 1 deletions
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 |