Commit 5daf92e8 authored by yihua.huang's avatar yihua.huang

#610 CASE_INSENSITIVE for charset detect in Content-Type

parent 2183ba9b
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment