Skip to content

Commit 2b76976

Browse files
author
Stephane Landelle
committed
StringPart doesn't have a filename
1 parent ceac4da commit 2b76976

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/main/java/com/ning/http/client/multipart/StringPart.java

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,11 @@ public StringPart(String name, String value, String contentType, Charset charset
6767
this(name, value, contentType, charset, null);
6868
}
6969

70-
public StringPart(String name, String value, String contentType, Charset charset, String fileName) {
71-
this(name, value, contentType, charset, fileName, null);
70+
public StringPart(String name, String value, String contentType, Charset charset, String contentId) {
71+
this(name, value, contentType, charset, contentId, null);
7272
}
7373

74-
public StringPart(String name, String value, String contentType, Charset charset, String fileName, String contentId) {
75-
this(name, value, contentType, charset, fileName, contentId, null);
76-
}
77-
78-
public StringPart(String name, String value, String contentType, Charset charset, String fileName, String contentId, String transferEncoding) {
74+
public StringPart(String name, String value, String contentType, Charset charset, String contentId, String transferEncoding) {
7975
super(name, contentTypeOrDefault(contentType), charsetOrDefault(charset), contentId, transferEncodingOrDefault(transferEncoding));
8076
if (value == null)
8177
throw new NullPointerException("value");
@@ -87,7 +83,7 @@ public StringPart(String name, String value, String contentType, Charset charset
8783
content = value.getBytes(getCharset());
8884
this.value = value;
8985
}
90-
86+
9187
/**
9288
* Writes the data to the given OutputStream.
9389
*

0 commit comments

Comments
 (0)