Skip to content

Commit c36be35

Browse files
author
ablecao
committed
xingePush#22 write后关闭数据流
1 parent 1564e63 commit c36be35

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/tencent/xinge/XingeApp.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,9 @@ private JSONObject callRestful(String apiAddress, String jsonRequestString) {
107107

108108
https.connect();
109109
try {
110-
OutputStream os = https.getOutputStream();
110+
DataOutputStream os = new DataOutputStream(https.getOutputStream());
111111
os.write(out);
112+
os.close();
112113

113114
} catch (Exception e) {
114115

0 commit comments

Comments
 (0)