mLogger.debug("Gzip size:" + byteStream.size());
// Update the Content-Length header.
res.setContentLength(byteStream.size());
ByteArrayOutputStreamWrapper newOut =
(ByteArrayOutputStreamWrapper) responseWrapper.getOutputStream();
newOut.clear();
newOut.setFinallized();
/* now force close of OutputStream */
newOut.write(byteStream.toByteArray());
newOut.close();
}
}