mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
Should send "403 - Forbidden" for security exceptions, not "401 - Unauthorized".
This commit is contained in:
@@ -170,7 +170,7 @@ public abstract class GuacamoleHTTPTunnelServlet extends HttpServlet {
|
||||
// HTTP response, logging each error appropriately.
|
||||
catch (GuacamoleSecurityException e) {
|
||||
logger.warn("Authorization failed.", e);
|
||||
sendError(response, HttpServletResponse.SC_UNAUTHORIZED);
|
||||
sendError(response, HttpServletResponse.SC_FORBIDDEN);
|
||||
}
|
||||
catch (GuacamoleResourceNotFoundException e) {
|
||||
logger.debug("Resource not found.", e);
|
||||
|
Reference in New Issue
Block a user