We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91897d6 commit 7320439Copy full SHA for 7320439
client/src/main/java/org/asynchttpclient/request/body/multipart/part/FileLikeMultipartPart.java
@@ -1,6 +1,6 @@
1
package org.asynchttpclient.request.body.multipart.part;
2
3
-import static java.nio.charset.StandardCharsets.US_ASCII;
+import static java.nio.charset.StandardCharsets.*;
4
5
import org.asynchttpclient.request.body.multipart.FileLikePart;
6
@@ -20,7 +20,7 @@ protected void visitDispositionHeader(PartVisitor visitor) {
20
if (part.getFileName() != null) {
21
visitor.withBytes(FILE_NAME_BYTES);
22
visitor.withByte(QUOTE_BYTE);
23
- visitor.withBytes(part.getFileName().getBytes(part.getCharset() != null ? part.getCharset() : US_ASCII));
+ visitor.withBytes(part.getFileName().getBytes(part.getCharset() != null ? part.getCharset() : UTF_8));
24
25
}
26
0 commit comments