Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
周少峰
2017-09-29 10:45:33 +0800
Commit
7ecbd594b54e6937ba089c7e80bd15e3865111d5
2 parents
6acf572a
9db34e69
Merge branch 'hotfix/limit'
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
4 deletions
doraemon/middleware/limiter/index.js
doraemon/middleware/limiter/index.js
View file @
7ecbd59
...
...
@@ -78,11 +78,8 @@ module.exports = (req, res, next) => {
exclusion
=
result
.
exclusion
;
}
if
(
!
excluded
&&
typeof
result
===
'function'
)
{
allPass
=
false
;
}
if
(
typeof
result
===
'function'
)
{
allPass
=
false
;
policy
=
result
;
}
});
...
...
Please
register
or
login
to post a comment