#610 CASE_INSENSITIVE for charset detect in Content-Type
parent
2183ba9b61
commit
5daf92e8b2
|
@ -108,7 +108,7 @@ public class UrlUtils {
|
|||
return urlList;
|
||||
}
|
||||
|
||||
private static final Pattern patternForCharset = Pattern.compile("charset\\s*=\\s*['\"]*([^\\s;'\"]*)");
|
||||
private static final Pattern patternForCharset = Pattern.compile("charset\\s*=\\s*['\"]*([^\\s;'\"]*)", Pattern.CASE_INSENSITIVE);
|
||||
|
||||
public static String getCharset(String contentType) {
|
||||
Matcher matcher = patternForCharset.matcher(contentType);
|
||||
|
|
Loading…
Reference in New Issue