Revert S-AMQP and SF to the latest Milestones
See TODOs in the code of this change
This commit is contained in:
@@ -51,7 +51,8 @@ public class SimpleMultipartFileReader implements MultipartFileReader<Object> {
|
||||
public Object readMultipartFile(MultipartFile multipartFile) throws IOException {
|
||||
if (multipartFile.getContentType() != null && multipartFile.getContentType().startsWith("text")) {
|
||||
MediaType contentType = MediaType.parseMediaType(multipartFile.getContentType());
|
||||
Charset charset = contentType.getCharset();
|
||||
// TODO there is no yet in the SF-4.3.RC1 a MediaType.getCharset() method
|
||||
Charset charset = contentType.getCharSet();
|
||||
if (charset == null) {
|
||||
charset = this.defaultCharset;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user