/src/main/java/org/htmlunit/util/EncodingSniffer.java
return true; if ( value.endsWith( ending.toLowerCase( Locale.ROOT) ) ) {for ( final String ending : contentTypeEndings) {
for ( final String ending : contentTypeEndings ) { if ( value.endsWith ( ending.toLowerCase ( Locale.ROOT ) ) ) { return true;
String value = pair.getValue(); final int i = value.indexOf(';'); if (i != -1) { value = value.substring(0, i); } value = value.trim().toLowerCase(Locale.ROOT); <extra_id_0> } } return false; } } return false;