Skip to content

Commit

Permalink
use utf-8 for response even when falling back on the container, Jetty…
Browse files Browse the repository at this point in the history
… for example will not set it unless specified by the browser ....
  • Loading branch information
florinpatrascu committed Dec 19, 2012
1 parent cc8bd4a commit 665151a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions java/src/org/jrack/RackFilter.java
Expand Up @@ -70,6 +70,7 @@ public final void doFilter(

HttpServletRequest httpRequest = (HttpServletRequest) request;
HttpServletResponse httpResponse = (HttpServletResponse) response;
response.setCharacterEncoding(RackResponse.DEFAULT_ENCODING);

if (shouldIgnorePath(httpRequest)) {
if (chain != null) {
Expand Down

0 comments on commit 665151a

Please sign in to comment.