🎨 Improving structure / format of the code.

This commit is contained in:
萌萌哒Sakura酱 committed 2019-02-03 22:28:06 +08:00
1 parent db0a3e0de6
commit e477418bc4
5 files changed
+11 -9

No files matched your search

@@ -18,13 +18,13 @@
package com.pig4cloud.pigx.common.security.util;
import cn.hutool.core.codec.Base64;
import cn.hutool.core.util.CharsetUtil;
import lombok.SneakyThrows;
import lombok.experimental.UtilityClass;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpHeaders;
import javax.servlet.http.HttpServletRequest;
import java.nio.charset.StandardCharsets;
/**
* @author lengleng
@@ -55,7 +55,7 @@ public class AuthUtils {
"Failed to decode basic authentication token");
}
String token = new String(decoded, CharsetUtil.UTF_8);
String token = new String(decoded, StandardCharsets.UTF_8);
int delim = token.indexOf(":");