Permalink
Browse files

fix param name with additional params

  • Loading branch information...
1 parent 3cc7031 commit ebd9f43879da4d9265fb39ac5ef6d574fb4bff6c @francois2metz francois2metz committed Dec 9, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 Android/FileUploader/FileUploader.java
View
2 Android/FileUploader/FileUploader.java
@@ -127,7 +127,7 @@ public void upload(InputStream fileInputStream, String server, JSONObject params
for (Iterator iter = params.keys(); iter.hasNext();) {
Object key = iter.next();
dos.writeBytes(td + boundary + lineEnd);
- dos.writeBytes("Content-Disposition: form-data; name=\"" + key + "\"); ");
+ dos.writeBytes("Content-Disposition: form-data; name=\"" + key + "\"; ");
dos.writeBytes(lineEnd + lineEnd);
dos.writeBytes(params.getString(key.toString()));
dos.writeBytes(lineEnd);

0 comments on commit ebd9f43

Please sign in to comment.