File tree Expand file tree Collapse file tree 3 files changed +2
-17
lines changed
client/src/main/java/org/asynchttpclient/request/body/multipart Expand file tree Collapse file tree 3 files changed +2
-17
lines changed Original file line number Diff line number Diff line change 1717import java .nio .charset .Charset ;
1818import java .util .List ;
1919
20- import static java .nio .charset .StandardCharsets .US_ASCII ;
21-
2220public interface Part {
2321
24- /**
25- * Carriage return/linefeed as a byte array
26- */
27- byte [] CRLF_BYTES = "\r \n " .getBytes (US_ASCII );
28-
29- /**
30- * Extra characters as a byte array
31- */
32- byte [] EXTRA_BYTES = "--" .getBytes (US_ASCII );
33-
3422 /**
3523 * Return the name of this part.
3624 *
Original file line number Diff line number Diff line change 2121import java .io .IOException ;
2222import java .nio .channels .WritableByteChannel ;
2323
24- import static org .asynchttpclient .request .body .multipart .Part .CRLF_BYTES ;
25- import static org .asynchttpclient .request .body .multipart .Part .EXTRA_BYTES ;
26-
2724public class MessageEndMultipartPart extends MultipartPart <FileLikePart > {
2825
2926 // lazy
Original file line number Diff line number Diff line change @@ -39,11 +39,11 @@ public abstract class MultipartPart<T extends PartBase> implements Closeable {
3939 /**
4040 * Carriage return/linefeed as a byte array
4141 */
42- private static final byte [] CRLF_BYTES = "\r \n " .getBytes (US_ASCII );
42+ protected static final byte [] CRLF_BYTES = "\r \n " .getBytes (US_ASCII );
4343 /**
4444 * Extra characters as a byte array
4545 */
46- private static final byte [] EXTRA_BYTES = "--" .getBytes (US_ASCII );
46+ protected static final byte [] EXTRA_BYTES = "--" .getBytes (US_ASCII );
4747
4848 /**
4949 * Content disposition as a byte array
You can’t perform that action at this time.
0 commit comments