Sending 401 instead of 200

This commit is contained in:
Matthias Wessendorf 2014-01-27 12:39:48 +01:00
parent 55388319cc
commit ab6c46b8af

View file

@ -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;
}