https://issues.apache.org/bugzilla/show_bug.cgi?id=49570

--- Comment #2 from Thai Ha <hathanht...@gmail.com> 2010-07-12 23:39:11 EDT ---
The patch in SVN doesn't work for me because there is no method
HttpServletResponse.getHeader()


protected HttpServletResponse response = null;
....
response.addHeader("Content-Encoding", "gzip");
String vary = response.getHeader("Vary");
if (vary == null) {
    // Add a new Vary header
    response.setHeader("Vary", "Accept-Encoding");
} else if (vary.equals("*")) {
    // No action required
} else {
    // Merge into current header
    response.setHeader("Vary", vary + ",Accept-Encoding");
}

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to