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 413aa9f commit 293b6d2Copy full SHA for 293b6d2
api/src/main/java/org/asynchttpclient/multipart/AbstractFilePart.java
@@ -69,7 +69,7 @@ protected void visitDispositionHeader(PartVisitor visitor) throws IOException {
69
if (fileName != null) {
70
visitor.withBytes(FILE_NAME_BYTES);
71
visitor.withByte(QUOTE_BYTE);
72
- visitor.withBytes(fileName.getBytes(US_ASCII));
+ visitor.withBytes(fileName.getBytes(getCharset() != null ? getCharset() : US_ASCII));
73
74
}
75
0 commit comments