pluto-container/src/main/java/org/apache/pluto/container/impl/RenderResponseImpl.java [47:72]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
   protected boolean isValidContentType(String contentType) {

      String[] parts = contentType.split("/");
      if (parts.length != 2) {
         return false;
      }      

      for (String supportedType : getResponseContentTypes()) {
         
         // Content type is supported by an exact or wildcard match.
         if (supportedType.matches("(?:\\*|\\*/\\*)") || supportedType.equals(contentType)) {
            return true;
         }
         
         String[] sp = supportedType.split("/");
         assert sp.length == 2;
         
         if (sp[0].equals("*") || sp[0].equals(parts[0])) {
            if (sp[1].equals("*") || sp[1].equals(parts[1])) {
               return true;
            }
         }
      }
      
      return false;
   }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



pluto-container/src/main/java/org/apache/pluto/container/impl/HeaderResponseImpl.java [47:72]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
   protected boolean isValidContentType(String contentType) {

      String[] parts = contentType.split("/");
      if (parts.length != 2) {
         return false;
      }      

      for (String supportedType : getResponseContentTypes()) {
         
         // Content type is supported by an exact or wildcard match.
         if (supportedType.matches("(?:\\*|\\*/\\*)") || supportedType.equals(contentType)) {
            return true;
         }
         
         String[] sp = supportedType.split("/");
         assert sp.length == 2;
         
         if (sp[0].equals("*") || sp[0].equals(parts[0])) {
            if (sp[1].equals("*") || sp[1].equals(parts[1])) {
               return true;
            }
         }
      }
      
      return false;
   }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



