RuoYi
2021-12-21 054fd7546f90c7875b6477f807c19f49dc0eb40c
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/ServletUtils.java
@@ -130,6 +130,16 @@
        }
    }
    public static String getHeader(HttpServletRequest request, String name)
    {
        String value = request.getHeader(name);
        if (StringUtils.isEmpty(value))
        {
            return StringUtils.EMPTY;
        }
        return urlDecode(value);
    }
    public static Map<String, String> getHeaders(HttpServletRequest request)
    {
        Map<String, String> map = new LinkedHashMap<>();
@@ -216,7 +226,7 @@
        }
        catch (UnsupportedEncodingException e)
        {
            return "";
            return StringUtils.EMPTY;
        }
    }
@@ -234,7 +244,7 @@
        }
        catch (UnsupportedEncodingException e)
        {
            return "";
            return StringUtils.EMPTY;
        }
    }