Commit dc501dfd authored by Stephane Nicoll's avatar Stephane Nicoll

Merge pull request #2370 from bclozel/acceptcharset

* acceptcharset:
  Disable Accept-Charset Header in String converter
parents ff2d423f 6d60c234
......@@ -144,7 +144,9 @@ public class HttpMessageConvertersAutoConfiguration {
@Bean
@ConditionalOnMissingBean
public StringHttpMessageConverter stringHttpMessageConverter() {
return new StringHttpMessageConverter(this.encodingProperties.getCharset());
StringHttpMessageConverter converter = new StringHttpMessageConverter(this.encodingProperties.getCharset());
converter.setWriteAcceptCharset(false);
return converter;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment