Skip to content

Commit 4c926df

Browse files
authored
Merge pull request #32 from eruca/patch-1
early break the loop if get we want
2 parents 4a63d74 + dcd0c9e commit 4c926df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/middleware/authen_middleware.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ where
6565
for ignore_route in constants::IGNORE_ROUTES.iter() {
6666
if req.path().starts_with(ignore_route) {
6767
authenticate_pass = true;
68+
break;
6869
}
6970
}
7071
if !authenticate_pass {

0 commit comments

Comments
 (0)