File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
client/src/main/java/org/asynchttpclient/request/body/multipart/part Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11package org .asynchttpclient .request .body .multipart .part ;
22
3- import static java .nio .charset .StandardCharsets .US_ASCII ;
3+ import static java .nio .charset .StandardCharsets .* ;
44
55import org .asynchttpclient .request .body .multipart .FileLikePart ;
66
@@ -20,7 +20,7 @@ protected void visitDispositionHeader(PartVisitor visitor) {
2020 if (part .getFileName () != null ) {
2121 visitor .withBytes (FILE_NAME_BYTES );
2222 visitor .withByte (QUOTE_BYTE );
23- visitor .withBytes (part .getFileName ().getBytes (part .getCharset () != null ? part .getCharset () : US_ASCII ));
23+ visitor .withBytes (part .getFileName ().getBytes (part .getCharset () != null ? part .getCharset () : UTF_8 ));
2424 visitor .withByte (QUOTE_BYTE );
2525 }
2626 }
You can’t perform that action at this time.
0 commit comments