File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
src/com/loopj/android/http Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -236,6 +236,14 @@ public HttpEntity getEntity() {
236236 multipartEntity .addPart (entry .getKey (), entry .getValue ());
237237 }
238238
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+
239247 // Add file params
240248 int currentIndex = 0 ;
241249 int lastIndex = fileParams .entrySet ().size () - 1 ;
@@ -252,14 +260,6 @@ public HttpEntity getEntity() {
252260 currentIndex ++;
253261 }
254262
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-
263263 entity = multipartEntity ;
264264 } else {
265265 try {
@@ -318,4 +318,4 @@ public String getFileName() {
318318 }
319319 }
320320 }
321- }
321+ }
You can’t perform that action at this time.
0 commit comments