Some various upgrades, fixes and refactoring
* Upgrade to SA and SF snapshots * Address TODOs regarding those upgrades * Resolve some other TODOs * Replace `PropertyPlaceholderConfigurer` beans with the `<context:property-placeholder>` * Upgrade to Spring Social Twitter 1.1.2 and resolve deprecations via mocks (https://github.com/spring-projects/spring-social-twitter/issues/91) * Upgrade to Curator `3.1.0` and resolve deprecation in the `ZookeeperMetadataStore`
This commit is contained in:
@@ -51,8 +51,7 @@ 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());
|
||||
// TODO there is no yet in the SF-4.3.RC1 a MediaType.getCharset() method
|
||||
Charset charset = contentType.getCharSet();
|
||||
Charset charset = contentType.getCharset();
|
||||
if (charset == null) {
|
||||
charset = this.defaultCharset;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user