diff --git a/inlong-manager/manager-web/src/main/java/org/apache/inlong/manager/web/utils/HttpContextUtils.java b/inlong-manager/manager-web/src/main/java/org/apache/inlong/manager/web/utils/HttpContextUtils.java index d2544160b20..ce17a35eb05 100644 --- a/inlong-manager/manager-web/src/main/java/org/apache/inlong/manager/web/utils/HttpContextUtils.java +++ b/inlong-manager/manager-web/src/main/java/org/apache/inlong/manager/web/utils/HttpContextUtils.java @@ -74,6 +74,7 @@ public static Map getParameterMap(HttpServletRequest request) } } } + paramMap.putAll(request.getParameterMap()); return paramMap; } diff --git a/inlong-manager/manager-web/src/main/java/org/apache/inlong/manager/web/utils/InlongRequestWrapper.java b/inlong-manager/manager-web/src/main/java/org/apache/inlong/manager/web/utils/InlongRequestWrapper.java index efbe6846e61..00a839dcfd3 100644 --- a/inlong-manager/manager-web/src/main/java/org/apache/inlong/manager/web/utils/InlongRequestWrapper.java +++ b/inlong-manager/manager-web/src/main/java/org/apache/inlong/manager/web/utils/InlongRequestWrapper.java @@ -51,11 +51,16 @@ public class InlongRequestWrapper extends HttpServletRequestWrapper { public InlongRequestWrapper(HttpServletRequest request) { super(request); - this.bodyParams = HttpContextUtils.getBodyString(request); this.params = HttpContextUtils.getParameterMap(request); + this.bodyParams = HttpContextUtils.getBodyString(request); this.headers = HttpContextUtils.getHeaderMapAll(request); } + @Override + public int getContentLength() { + return bodyParams.length(); + } + @Override public String getParameter(String name) { String result;