Skip to content

Commit

Permalink
fix: #2939
Browse files Browse the repository at this point in the history
  • Loading branch information
Maijh97 committed Jun 2, 2020
1 parent 3c23ed0 commit 98ee23e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ public static HttpResult request(String url, List<String> headers, Map<String, S
setHeaders(conn, headers, encoding);

if (StringUtils.isNotBlank(body)) {
conn.setDoOutput(true);
byte[] b = body.getBytes();
conn.setRequestProperty("Content-Length", String.valueOf(b.length));
conn.getOutputStream().write(b, 0, b.length);
Expand Down

0 comments on commit 98ee23e

Please sign in to comment.