Revert S-AMQP and SF to the latest Milestones

See TODOs in the code of this change
This commit is contained in:
Artem Bilan
2016-04-25 14:37:24 -04:00
parent b3087b4fc8
commit 854a504a95
4 changed files with 17 additions and 3 deletions

View File

@@ -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;
}