Skip to content

Commit dee9671

Browse files
author
Stephane Landelle
committed
Make multipart FilePart charset optional, close #524
1 parent 8536ad5 commit dee9671

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/main/java/com/ning/http/multipart/FilePart.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@ public class FilePart extends PartBase {
3333
*/
3434
public static final String DEFAULT_CONTENT_TYPE = "application/octet-stream";
3535

36-
/**
37-
* Default charset of file attachments.
38-
*/
39-
public static final String DEFAULT_CHARSET = "ISO-8859-1";
40-
4136
/**
4237
* Default transfer encoding of file attachments.
4338
*/
@@ -68,7 +63,7 @@ public class FilePart extends PartBase {
6863
*/
6964
public FilePart(String name, PartSource partSource, String contentType, String charset, String contentId) {
7065

71-
super(name, contentType == null ? DEFAULT_CONTENT_TYPE : contentType, charset == null ? "ISO-8859-1" : charset, DEFAULT_TRANSFER_ENCODING, contentId);
66+
super(name, contentType == null ? DEFAULT_CONTENT_TYPE : contentType, charset, DEFAULT_TRANSFER_ENCODING, contentId);
7267
if (partSource == null) {
7368
throw new IllegalArgumentException("Source may not be null");
7469
}

0 commit comments

Comments
 (0)