Skip to content

Commit

Permalink
Revert "try to fix jetty#4577"
Browse files Browse the repository at this point in the history
This reverts commit edb5196.
  • Loading branch information
liudonghua123 committed Feb 16, 2020
1 parent edb5196 commit 67c513d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public void handle(String target, Request baseRequest, HttpServletRequest reques
if (endp != null)
{
InetSocketAddress address = endp.getRemoteAddress();
if (address != null && !isAddrUriAllowed(address.getHostString(), baseRequest.getContextPath()))
if (address != null && !isAddrUriAllowed(address.getHostString(), baseRequest.getPathInfo()))
{
response.sendError(HttpStatus.FORBIDDEN_403);
baseRequest.setHandled(true);
Expand Down

0 comments on commit 67c513d

Please sign in to comment.