修复字符编码检测BUG
parent
1c24baa8d1
commit
c93a8a2722
|
@ -26,7 +26,7 @@ public abstract class CharsetUtils {
|
||||||
// charset
|
// charset
|
||||||
// 1、encoding in http header Content-Type
|
// 1、encoding in http header Content-Type
|
||||||
charset = UrlUtils.getCharset(contentType);
|
charset = UrlUtils.getCharset(contentType);
|
||||||
if (StringUtils.isNotBlank(contentType)) {
|
if (StringUtils.isNotBlank(contentType) && StringUtils.isNotBlank(charset)) {
|
||||||
logger.debug("Auto get charset: {}", charset);
|
logger.debug("Auto get charset: {}", charset);
|
||||||
return charset;
|
return charset;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue