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:
@@ -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. "
|
||||
|
||||
Reference in New Issue
Block a user