This commit is contained in:
地平线
2015-09-11 13:34:07 +08:00
parent abf7b1cbf4
commit 3a161c87b8

View File

@@ -466,6 +466,7 @@ public final class Utility {
conn.setRequestMethod(method);
if (headers != null) headers.forEach((x, y) -> conn.setRequestProperty(x, y));
if (body != null) {
conn.setDoInput(true);
conn.setDoOutput(true);
conn.getOutputStream().write(body.getBytes(UTF_8));
}