Sending 401 instead of 200
This commit is contained in:
parent
55388319cc
commit
ab6c46b8af
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ public class AuthenticatedActionsHandler implements HttpHandler {
|
|||
protected boolean abortTokenResponse(HttpServerExchange exchange, SkeletonKeySession session) throws IOException {
|
||||
if (session == null) {
|
||||
log.debugv("session was null, sending back 401: {0}",exchange.getRequestURI());
|
||||
exchange.setResponseCode(200);
|
||||
exchange.setResponseCode(StatusCodes.UNAUTHORIZED);
|
||||
exchange.endExchange();
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue