Skip to content

Commit dcd0c9e

Browse files
authored
early break the loop if get we want
1 parent 4a63d74 commit dcd0c9e

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)