diff options
| author | crobibero <cody@robibe.ro> | 2020-09-07 20:51:12 -0600 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-09-07 20:51:12 -0600 |
| commit | e7727563288480e6eee541b96a4b97dbb0fef9d7 (patch) | |
| tree | 7db736e147415931f7b6bbef9972c6868d08f9ac | |
| parent | cd40688584a851ae7595d69f596ec0d06968f4e8 (diff) | |
Fix catching authentication exception
| -rw-r--r-- | Jellyfin.Server/Middleware/ExceptionMiddleware.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Jellyfin.Server/Middleware/ExceptionMiddleware.cs b/Jellyfin.Server/Middleware/ExceptionMiddleware.cs index 63effafc1..fb1ee3b2b 100644 --- a/Jellyfin.Server/Middleware/ExceptionMiddleware.cs +++ b/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 _: |
