Start version 6.4

* Move `whats-new` to `changes-6.2-6.3.adoc`
* Upgrade dependency to the latest (including Gradle)
* Move Spring dependencies to based on SF-6.2
* Fix some deprecations and incompatibility
This commit is contained in:
Artem Bilan
2024-05-28 20:07:35 -04:00
parent dc96ff6a2d
commit 8b2da4f996
18 changed files with 150 additions and 201 deletions

View File

@@ -96,12 +96,13 @@ public class MultipartAwareFormHttpMessageConverter implements HttpMessageConver
}
@Override
@SuppressWarnings("unchecked")
public MultiValueMap<String, ?> read(Class<? extends MultiValueMap<String, ?>> clazz,
HttpInputMessage inputMessage) throws IOException, HttpMessageNotReadableException {
MediaType contentType = inputMessage.getHeaders().getContentType();
if (!MediaType.MULTIPART_FORM_DATA.includes(contentType)) {
return this.wrappedConverter.read(clazz, inputMessage);
return (MultiValueMap<String, ?>) this.wrappedConverter.read(clazz, inputMessage);
}
Assert.state(inputMessage instanceof MultipartHttpInputMessage,
"A request with 'multipart/form-data' Content-Type must be a MultipartHttpInputMessage. "