}
try {
// default to gzip
if ("*".equals(accept.trim())) {
response.setFilter(new GZipWriterFilter(filter));
} else {
if (accept.contains("gzip")) {
response.setFilter(new GZipWriterFilter(filter));
} else if (accept.contains("deflate")) {
response.setFilter(new DeflateWriterFilter(filter));
}
}
next.handle(null);