Fix catching authentication exception

This commit is contained in:
crobibero 2020-09-07 20:51:12 -06:00
parent cd40688584
commit e772756328

View File

@ -125,6 +125,7 @@ namespace Jellyfin.Server.Middleware
switch (ex) switch (ex)
{ {
case ArgumentException _: return StatusCodes.Status400BadRequest; case ArgumentException _: return StatusCodes.Status400BadRequest;
case AuthenticationException _:
case SecurityException _: return StatusCodes.Status401Unauthorized; case SecurityException _: return StatusCodes.Status401Unauthorized;
case DirectoryNotFoundException _: case DirectoryNotFoundException _:
case FileNotFoundException _: case FileNotFoundException _: