Skip to content

Commit

Permalink
http返回错误时,输出请求字符串
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenix committed Jul 7, 2015
1 parent e874159 commit b834a36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/edu/scup/io/HttpClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public static String post(String url, byte[] body, String contentType) throws IO
conn.getOutputStream().write(body);

if (conn.getResponseCode() != 200) {
logger.error("response error {},request {}", IOUtils.toString(conn.getErrorStream()), body);
logger.error("response error {},request {}", IOUtils.toString(conn.getErrorStream()), new String(body));
return "";
}

Expand Down

0 comments on commit b834a36

Please sign in to comment.