Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apollo
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
apollo
Commits
39b764bf
Commit
39b764bf
authored
Jan 22, 2017
by
Jason Song
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ignore GET request for open api audit
parent
7e2e1d0b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
ConsumerAuditUtil.java
...trip/framework/apollo/openapi/util/ConsumerAuditUtil.java
+4
-0
No files found.
apollo-portal/src/main/java/com/ctrip/framework/apollo/openapi/util/ConsumerAuditUtil.java
View file @
39b764bf
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment