HTTPCLIENT-1665: MultipartEntity to use US-ASCII charset by default (regression)

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1709523 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Oleg Kalnichevski 2015-10-20 07:42:34 +00:00
parent 2f062b3b43
commit 8e6ab0bdb8
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ public class MultipartEntity implements HttpEntity {
super();
this.builder = new MultipartEntityBuilder()
.setMode(mode)
.setCharset(charset)
.setCharset(charset != null ? charset : MIME.DEFAULT_CHARSET)
.setBoundary(boundary);
this.entity = null;
}