Merge remote-tracking branch 'origin/jetty-9.4.x'

This commit is contained in:
Greg Wilkins 2017-01-20 15:58:26 +11:00
commit 30bb2b4193
1 changed files with 4 additions and 1 deletions

View File

@ -801,7 +801,10 @@ public class Response implements HttpServletResponse
String encoding = MimeTypes.getCharsetAssumedFromContentType(_contentType); String encoding = MimeTypes.getCharsetAssumedFromContentType(_contentType);
if (encoding!=null) if (encoding!=null)
return encoding; return encoding;
_characterEncoding = StringUtil.__ISO_8859_1; encoding = MimeTypes.getCharsetInferredFromContentType(_contentType);
if (encoding!=null)
return encoding;
return StringUtil.__ISO_8859_1;
} }
return _characterEncoding; return _characterEncoding;
} }