brianchandotcom/liferay-portal — pull request #4083 by holatuwol (2012-02-06 02:38:12+00:00)
Title: LPS-25341

There's no harm in saying that the content encoding is gzip if the content type is gzip and we don't add another layer of gzip on top of it. Therefore, to avoid the problem that comes up if we call addHeader() too late, always set the content encoding to gzip if we wrap things in a GZipResponse.