request.getHeader

    从header里面取值 key 不区分大小写

    1. private boolean isInclusionTencentSecurityTeam(HttpServletRequest request) {
    2. String userAgent = request.getHeader(Header.USER_AGENT.toString());
    3. return StringUtils.containsIgnoreCase(userAgent, TENCENT_SECURITY_TEAM_KEYWORD);
    4. }