Skip to content

Commit bc77ef9

Browse files
committed
修复一处来自HttpClient的文件上传bug
1 parent f0cbfd4 commit bc77ef9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/src/com/lidroid/xutils/http/client/multipart/MultipartEntity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,10 @@ protected String generateContentType(
144144
StringBuilder buffer = new StringBuilder();
145145
buffer.append("multipart/" + multipartSubtype + "; boundary=");
146146
buffer.append(boundary);
147-
if (charset != null) {
147+
/*if (charset != null) {
148148
buffer.append("; charset=");
149149
buffer.append(charset.name());
150-
}
150+
}*/
151151
return buffer.toString();
152152
}
153153

0 commit comments

Comments
 (0)