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