Explorar o código

Merge pull request #4096 from crobibero/auth-ex

Fix catching authentication exception
Bond-009 %!s(int64=4) %!d(string=hai) anos
pai
achega
b76d4ba454
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      Jellyfin.Server/Middleware/ExceptionMiddleware.cs

+ 1 - 0
Jellyfin.Server/Middleware/ExceptionMiddleware.cs

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