@Override public void addHeader(String name, String value) { if (name.equalsIgnoreCase("content-type") && response.containsHeader("Content-Type")) { setHeader(name, value); } else { response.addHeader(name, value); } }
@Override public boolean containsHeader(String name) { return response.containsHeader(name); }