Skip to content

Commit 6ddd1c3

Browse files
committed
Don't log payload, or Travis breaks
1 parent 3529482 commit 6ddd1c3

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

client/src/test/java/org/asynchttpclient/test/EchoHandler.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -124,15 +124,15 @@ public void handle(String pathInContext, Request request, HttpServletRequest htt
124124
String md5 = TestUtils.md5(bytes, 0, total);
125125
httpResponse.addHeader(CONTENT_MD5.toString(), md5);
126126

127-
if (!md5.equals(clientMd5)) {
128-
int length = total;
129-
int rows = length / 16 + (length % 15 == 0 ? 0 : 1) + 4;
130-
StringBuilder buf = new StringBuilder("JETTY".length() + 1 + "JETTY".length() + 2 + 10 + 1 + 2 + rows * 80);
131-
132-
buf.append("JETTY").append(' ').append("JETTY").append(": ").append(length).append('B').append(StringUtil.NEWLINE);
133-
ByteBufUtil.appendPrettyHexDump(buf, Unpooled.wrappedBuffer(bytes));
134-
LOGGER.error(buf.toString());
135-
}
127+
// if (!md5.equals(clientMd5)) {
128+
// int length = total;
129+
// int rows = length / 16 + (length % 15 == 0 ? 0 : 1) + 4;
130+
// StringBuilder buf = new StringBuilder("JETTY".length() + 1 + "JETTY".length() + 2 + 10 + 1 + 2 + rows * 80);
131+
//
132+
// buf.append("JETTY").append(' ').append("JETTY").append(": ").append(length).append('B').append(StringUtil.NEWLINE);
133+
// ByteBufUtil.appendPrettyHexDump(buf, Unpooled.wrappedBuffer(bytes));
134+
// LOGGER.error(buf.toString());
135+
// }
136136

137137
httpResponse.getOutputStream().write(bytes, 0, total);
138138
} else {

0 commit comments

Comments
 (0)