agmip/liferay-portal-impl — pull request #4 by yaripodio (2014-11-20 11:34:40+00:00)
Title: Add support for Content-Encoding: gzip

When the server is serving compressed files, this class is not going to work as the HTML code retrieved will be gzip-encoded.
I've added the code for a possible solution. It checks the Content-Encoding header, if gzip decompresses the HTML code before the changes and compresses it again before sending.
I don't know if it's the best solution but has worked for me...