diff --git a/httpmime/src/main/java-deprecated/org/apache/http/entity/mime/MultipartEntity.java b/httpmime/src/main/java-deprecated/org/apache/http/entity/mime/MultipartEntity.java index 0a09ee78f..07c43b6f2 100644 --- a/httpmime/src/main/java-deprecated/org/apache/http/entity/mime/MultipartEntity.java +++ b/httpmime/src/main/java-deprecated/org/apache/http/entity/mime/MultipartEntity.java @@ -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; }