@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);
   }
 }
示例#2
0
 @Override
 public boolean containsHeader(String name) {
   return response.containsHeader(name);
 }