File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed
library/src/com/loopj/android/http Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -148,22 +148,12 @@ private byte[] createContentType(String type) {
148
148
}
149
149
150
150
private byte [] createContentDisposition (final String key ) {
151
- return new StringBuilder ()
152
- .append ("Content-Disposition: form-data; name=\" " )
153
- .append (key )
154
- .append ("\" \r \n " )
155
- .toString ()
151
+ return ("Content-Disposition: form-data; name=\" " + key + "\" \r \n " )
156
152
.getBytes ();
157
153
}
158
154
159
155
private byte [] createContentDisposition (final String key , final String fileName ) {
160
- return new StringBuilder ()
161
- .append ("Content-Disposition: form-data; name=\" " )
162
- .append (key )
163
- .append ("\" ; filename=\" " )
164
- .append (fileName )
165
- .append ("\" \r \n " )
166
- .toString ()
156
+ return ("Content-Disposition: form-data; name=\" " + key + "\" ; filename=\" " + fileName + "\" \r \n " )
167
157
.getBytes ();
168
158
}
169
159
You can’t perform that action at this time.
0 commit comments