File tree 1 file changed +9
-9
lines changed
src/com/loopj/android/http
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -236,6 +236,14 @@ public HttpEntity getEntity() {
236
236
multipartEntity .addPart (entry .getKey (), entry .getValue ());
237
237
}
238
238
239
+ // Add dupe params
240
+ for (ConcurrentHashMap .Entry <String , ArrayList <String >> entry : urlParamsWithArray .entrySet ()) {
241
+ ArrayList <String > values = entry .getValue ();
242
+ for (String value : values ) {
243
+ multipartEntity .addPart (entry .getKey (), value );
244
+ }
245
+ }
246
+
239
247
// Add file params
240
248
int currentIndex = 0 ;
241
249
int lastIndex = fileParams .entrySet ().size () - 1 ;
@@ -252,14 +260,6 @@ public HttpEntity getEntity() {
252
260
currentIndex ++;
253
261
}
254
262
255
- // Add dupe params
256
- for (ConcurrentHashMap .Entry <String , ArrayList <String >> entry : urlParamsWithArray .entrySet ()) {
257
- ArrayList <String > values = entry .getValue ();
258
- for (String value : values ) {
259
- multipartEntity .addPart (entry .getKey (), value );
260
- }
261
- }
262
-
263
263
entity = multipartEntity ;
264
264
} else {
265
265
try {
@@ -318,4 +318,4 @@ public String getFileName() {
318
318
}
319
319
}
320
320
}
321
- }
321
+ }
You can’t perform that action at this time.
0 commit comments