requestHandlingLog.debug("Returning, encoding: " + response.contentEncoding() + " response: " + response);
}
if (responseCompressionEnabled()) {
String contentType = response.headerForKey("content-type");
if (!"gzip".equals(response.headerForKey("content-encoding")) && (contentType != null) && (contentType.startsWith("text/") || responseCompressionTypes().containsObject(contentType))) {
String acceptEncoding = request.headerForKey("accept-encoding");
if ((acceptEncoding != null) && (acceptEncoding.toLowerCase().indexOf("gzip") != -1)) {
long start = System.currentTimeMillis();
long inputBytesLength;
InputStream contentInputStream = response.contentInputStream();