Skip to content

Commit

Permalink
ignore GET request for open api audit
Browse files Browse the repository at this point in the history
  • Loading branch information
nobodyiam committed Jan 22, 2017
1 parent 7e2e1d0 commit 39b764b
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 39b764b

Please sign in to comment.