Commit 39b764bf by Jason Song

ignore GET request for open api audit

parent 7e2e1d0b
......@@ -46,6 +46,10 @@ public class ConsumerAuditUtil implements InitializingBean {
}
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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment