File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
org.springframework.web/src/main/java/org/springframework/http/server Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -111,9 +111,9 @@ public HttpHeaders getHeaders() {
111
111
this .servletRequest .getCharacterEncoding () != null ) {
112
112
MediaType oldContentType = this .headers .getContentType ();
113
113
Charset charSet = Charset .forName (this .servletRequest .getCharacterEncoding ());
114
- Map <String , String > params = new HashMap <String , String >(oldContentType .getParameters ());
115
- params .put ("charset" , charSet .toString ());
116
- MediaType newContentType = new MediaType (oldContentType .getType (), oldContentType .getSubtype (), params );
114
+ Map <String , String > params = new HashMap <String , String >(oldContentType .getParameters ());
115
+ params .put ("charset" , charSet .toString ());
116
+ MediaType newContentType = new MediaType (oldContentType .getType (), oldContentType .getSubtype (), params );
117
117
this .headers .setContentType (newContentType );
118
118
}
119
119
if (this .headers .getContentLength () == -1 && this .servletRequest .getContentLength () != -1 ) {
You can’t perform that action at this time.
0 commit comments