String redirectedTo = response.getLastSetValueOfHeader("Location");
if (redirectedTo != null) session.addAjaxRedirect(redirectedTo);
}
if (isGZIP) {
response.removeHeader("Content-Encoding", "gzip");
if (response instanceof StreamingHttpResponse) response.setContentLength(-1);
}
}catch(IOException uhe){
if (uhe instanceof SSLHandshakeException)