@@ -376,7 +376,7 @@ private void writeForm(MultiValueMap<String, Object> formData, @Nullable MediaTy
376
376
Charset charset = contentType .getCharset ();
377
377
Assert .notNull (charset , "No charset" ); // should never occur
378
378
379
- final byte [] bytes = serializeForm (formData , charset ).getBytes (charset );
379
+ byte [] bytes = serializeForm (formData , charset ).getBytes (charset );
380
380
outputMessage .getHeaders ().setContentLength (bytes .length );
381
381
382
382
if (outputMessage instanceof StreamingHttpOutputMessage ) {
@@ -422,17 +422,17 @@ protected String serializeForm(MultiValueMap<String, Object> formData, Charset c
422
422
return builder .toString ();
423
423
}
424
424
425
- private void writeMultipart (final MultiValueMap <String , Object > parts , MediaType contentType , HttpOutputMessage outputMessage )
425
+ private void writeMultipart (MultiValueMap <String , Object > parts , MediaType contentType , HttpOutputMessage outputMessage )
426
426
throws IOException {
427
427
428
428
// If the supplied content type is null, fall back to multipart/form-data.
429
429
// Otherwise rely on the fact that isMultipart() already verified the
430
- // supplied content type is multipart/* .
430
+ // supplied content type is multipart.
431
431
if (contentType == null ) {
432
432
contentType = MediaType .MULTIPART_FORM_DATA ;
433
433
}
434
434
435
- final byte [] boundary = generateMultipartBoundary ();
435
+ byte [] boundary = generateMultipartBoundary ();
436
436
Map <String , String > parameters = new LinkedHashMap <>(2 );
437
437
if (!isFilenameCharsetSet ()) {
438
438
parameters .put ("charset" , this .charset .name ());
0 commit comments