1
0
mirror of synced 2026-08-05 17:57:15 +00:00

Use static HttpServletResponse.SC_UNAUTHORIZED instead of 401 HTTP response code.

This commit is contained in:
Ben Alex
2005-02-13 00:59:48 +00:00
parent 6370fadfdc
commit beadf24610
2 changed files with 3 additions and 2 deletions
@@ -1,4 +1,4 @@
/* Copyright 2004 Acegi Technology Pty Limited
/* Copyright 2004, 2005 Acegi Technology Pty Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -70,6 +70,6 @@ public class BasicProcessingFilterEntryPoint implements AuthenticationEntryPoint
HttpServletResponse httpResponse = (HttpServletResponse) response;
httpResponse.addHeader("WWW-Authenticate",
"Basic realm=\"" + realmName + "\"");
httpResponse.sendError(401);
httpResponse.sendError(HttpServletResponse.SC_UNAUTHORIZED); // 401
}
}