File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
opengrok-web/src/main/java/org/opengrok/web/api/v1/filter Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -98,11 +98,10 @@ public void filter(final ContainerRequestContext context) {
98
98
99
99
if (request .isSecure ()) {
100
100
String authHeader ;
101
- if ((authHeader = request .getHeader (HttpHeaders .AUTHORIZATION )) != null ) {
102
- if (RuntimeEnvironment .getInstance ().getAuthenticationTokens ().contains (authHeader )) {
103
- logger .log (Level .FINEST , "allowing request to {0} based on authentication header" , path );
104
- return ;
105
- }
101
+ if (((authHeader = request .getHeader (HttpHeaders .AUTHORIZATION )) != null ) &&
102
+ RuntimeEnvironment .getInstance ().getAuthenticationTokens ().contains (authHeader )) {
103
+ logger .log (Level .FINEST , "allowing request to {0} based on authentication header" , path );
104
+ return ;
106
105
}
107
106
}
108
107
You can’t perform that action at this time.
0 commit comments