Skip to content

Commit

Permalink
#152: removed block which was introduced during FacesViews testing/fi…
Browse files Browse the repository at this point in the history
…xing
  • Loading branch information
BalusC committed Mar 12, 2013
1 parent 77982b4 commit 1e7688b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/org/omnifaces/filter/GzipResponseFilter.java
Expand Up @@ -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);
Expand Down

0 comments on commit 1e7688b

Please sign in to comment.