Skip to content

Commit

Permalink
Merge pull request #7263 from ashcoding/TIMOB-19661
Browse files Browse the repository at this point in the history
[TIMOB-19661] Android: HttpClient missing closing " in Content-Disposition name
  • Loading branch information
cheekiatng committed Oct 2, 2015
2 parents 7baa4c1 + 3b902ed commit ab3ed84
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1259,7 +1259,7 @@ private void addFilePart(String name, ContentBody contentBody) throws IOExceptio
String fileName = contentBody.getFilename();

printWriter.append("--" + boundary).append(LINE_FEED);
printWriter.append("Content-Disposition: form-data; name=\"" + name);
printWriter.append("Content-Disposition: form-data; name=\"" + name + "\"");
if(fileName != null){
printWriter.append("\"; filename=\"" + fileName + "\"");
}
Expand Down

0 comments on commit ab3ed84

Please sign in to comment.