byte[] compressed = ResourceCompressor.compress(result.content(), Charset.forName(result.getEncoding())); if (compressed.length > 0) { res.setIntHeader(HttpHeaders.CONTENT_LENGTH, compressed.length);
byte[] compressed = ResourceCompressor.compress(result.content(), Charset.forName(result.getEncoding())); if (compressed.length > 0) { res.setIntHeader(HttpHeaders.CONTENT_LENGTH, compressed.length);