调整 kk-proxy-authorization 参数从 header 头里获取,增强认证参数获取的安全性

This commit is contained in:
YiwenXia 2023-09-20 21:23:31 +08:00
parent 713edcfb8d
commit 5fe0dd3d29
1 changed files with 1 additions and 1 deletions

View File

@ -469,7 +469,7 @@ public class FileHandlerService implements InitializingBean {
if (StringUtils.hasText(userToken)) {
attribute.setUserToken(userToken);
}
String kkProxyAuthorization = req.getParameter( "kk-proxy-authorization");
String kkProxyAuthorization = req.getHeader( "kk-proxy-authorization");
attribute.setKkProxyAuthorization(kkProxyAuthorization);
}