Skip to content

Commit

Permalink
fix: adapt to the scenario that the ConfigService sets context-path (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
nisiyong authored and nobodyiam committed Oct 2, 2020
1 parent 4d49504 commit 849ad71
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain
}

// check signature
String path = request.getServletPath();
String uri = request.getRequestURI();
String query = request.getQueryString();
if (!checkAuthorization(authorization, availableSecrets, timestamp, path, query)) {
if (!checkAuthorization(authorization, availableSecrets, timestamp, uri, query)) {
logger.warn("Invalid authorization. appId={},authorization={}", appId, authorization);
response.sendError(HttpServletResponse.SC_UNAUTHORIZED, "Unauthorized");
return;
Expand Down

0 comments on commit 849ad71

Please sign in to comment.