Skip to content

Commit

Permalink
[INLONG-8671][Manager] Fix no method parameter of form data in POST r…
Browse files Browse the repository at this point in the history
…equest (#8672)
  • Loading branch information
vernedeng authored Aug 9, 2023
1 parent ab903af commit 528dcf5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public static Map<String, String[]> getParameterMap(HttpServletRequest request)
}
}
}
paramMap.putAll(request.getParameterMap());
return paramMap;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 528dcf5

Please sign in to comment.