Permalink
Browse files

#152: removed block which was introduced during FacesViews testing/fi…

…xing
  • Loading branch information...
BalusC committed Mar 12, 2013
1 parent 77982b4 commit 1e7688bb2b5407e9e2f23047da450c57ead10ff4
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/org/omnifaces/filter/GzipResponseFilter.java
@@ -146,10 +146,7 @@ public void init() throws ServletException {
if (acceptsGzip(request)) {
GzipHttpServletResponse gzipResponse = new GzipHttpServletResponse(response, threshold, mimetypes);
chain.doFilter(request, gzipResponse);
if (!gzipResponse.isCommitted()) { // Some other filter may have performed a forward/redirect.
gzipResponse.close(); // Mandatory for the case the threshold limit hasn't been reached.
}
gzipResponse.close(); // Mandatory for the case the threshold limit hasn't been reached.
}
else {
chain.doFilter(request, response);

0 comments on commit 1e7688b

Please sign in to comment.