Mercurial > hg > LGServices
comparison src/main/java/de/mpiwg/web/jsp/utils/CharsetFilter.java @ 7:ae3ebafabb7f
fixing a bug, when the FilterChain is null.
author | "jurzua <jurzua@mpiwg-berlin.mpg.de>" |
---|---|
date | Thu, 21 May 2015 14:25:51 +0200 |
parents | 3e62083dbcbf |
children |
comparison
equal
deleted
inserted
replaced
6:0378dbd683b8 | 7:ae3ebafabb7f |
---|---|
29 * Set the default response content type and encoding | 29 * Set the default response content type and encoding |
30 */ | 30 */ |
31 response.setContentType("text/html; charset=UTF-8"); | 31 response.setContentType("text/html; charset=UTF-8"); |
32 response.setCharacterEncoding("UTF-8"); | 32 response.setCharacterEncoding("UTF-8"); |
33 | 33 |
34 next.doFilter(request, response); | 34 if(next != null){ |
35 next.doFilter(request, response); | |
36 } | |
35 } | 37 } |
36 | 38 |
37 public void destroy() { | 39 public void destroy() { |
38 } | 40 } |
39 } | 41 } |