Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6ddd1c3

Browse files
committed
Don't log payload, or Travis breaks
1 parent3529482 commit6ddd1c3

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
Stringmd5 =TestUtils.md5(bytes,0,total);
125125
httpResponse.addHeader(CONTENT_MD5.toString(),md5);
126126

127-
if (!md5.equals(clientMd5)) {
128-
intlength =total;
129-
introws =length /16 + (length %15 ==0 ?0 :1) +4;
130-
StringBuilderbuf =newStringBuilder("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)

[8]ページ先頭

©2009-2025 Movatter.jp