Skip to content

Commit

Permalink
Merge pull request apolloconfig#524 from nobodyiam/open-api-audit
Browse files Browse the repository at this point in the history
ignore GET request for open api audit
  • Loading branch information
lepdou authored Jan 22, 2017
2 parents 7e2e1d0 + 39b764b commit 309fb99
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ public ConsumerAuditUtil() {
}

public boolean audit(HttpServletRequest request, long consumerId) {
//ignore GET request
if ("GET".equalsIgnoreCase(request.getMethod())) {
return true;
}
String uri = request.getRequestURI();
if (!Strings.isNullOrEmpty(request.getQueryString())) {
uri += "?" + request.getQueryString();
Expand Down

0 comments on commit 309fb99

Please sign in to comment.