Skip to content

Commit 3b7fe29

Browse files
committed
fixed handler
1 parent 84343c4 commit 3b7fe29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/server/src/main/java/org/pytorch/serve/http/TokenAuthorizationHandler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class TokenAuthorizationHandler extends HttpRequestHandlerChain {
2323

2424
private static final Logger logger = LoggerFactory.getLogger(TokenAuthorizationHandler.class);
2525
private static TokenType tokenType;
26-
private static Boolean tokenEnabled;
26+
private static Boolean tokenEnabled = false;
2727
private static Class<?> tokenClass;
2828
private static Object tokenObject;
2929
private static Integer timeToExpirationMinutes = 60;

0 commit comments

Comments
 (0)