/wro4j-core/src/main/java/ro/isdc/wro/http/GzipFilter.java
if ( countingStream.getCount( ) < 0) {
if ( countingStream.getCount ( ) > 0 ) {
baos))); final HttpServletResponseWrapper wrappedResponse = new RedirectedStreamServletResponseWrapper(countingStream, response); chain.doFilter(req, wrappedResponse); countingStream.close(); response.setContentLength(countingStream.getCount()); <extra_id_0> IOUtils.write(baos.toByteArray(), response.getOutputStream()); } } private boolean isGzipAllowed(final HttpServletRequest request) { return !DispatcherStreamLocator.isIncludedRequest(request) && WroUtil.isGzipSupported(request); }