Skip to content

Commit

Permalink
ShenYu Admin Cluster #5448
Browse files Browse the repository at this point in the history
  • Loading branch information
Aias00 committed Apr 24, 2024
1 parent 443eafa commit 664b79b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ private void forwardRequest(final HttpServletRequest request, final HttpServletR
HttpHeaders headers = new HttpHeaders();
copyHeaders(request, headers);
HttpEntity<byte[]> requestEntity = new HttpEntity<>(getBody(request), headers);
if (!(clusterMasterService.getMasterUrl() + request.getRequestURI()).equals(url)) {
throw new IllegalArgumentException("Invalid URL");
}
String urlWithParams = url;
if (StringUtils.isNotEmpty(request.getQueryString())) {
urlWithParams += "?" + request.getQueryString();
Expand Down

0 comments on commit 664b79b

Please sign in to comment.