Explorar o código

Add MethodNotAllowedException with code 405

Joshua Boniface %!s(int64=6) %!d(string=hai) anos
pai
achega
250e0c75df
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      Emby.Server.Implementations/HttpServer/HttpListenerHost.cs

+ 1 - 0
Emby.Server.Implementations/HttpServer/HttpListenerHost.cs

@@ -203,6 +203,7 @@ namespace Emby.Server.Implementations.HttpServer
                 case DirectoryNotFoundException _:
                 case FileNotFoundException _:
                 case ResourceNotFoundException _: return 404;
+                case MethodNotAllowedException _: return 405;
                 case RemoteServiceUnavailableException _: return 502;
                 default: return 500;
             }