diff --git a/SimpleHttpServer/HttpServer.cs b/SimpleHttpServer/HttpServer.cs index d5cc3ee..02c126e 100644 --- a/SimpleHttpServer/HttpServer.cs +++ b/SimpleHttpServer/HttpServer.cs @@ -87,7 +87,7 @@ public sealed class HttpServer { private readonly Dictionary<(string path, string rType), EndpointInvocationInfo> simpleEndpointMethodInfos = new(); private static readonly Type[] expectedEndpointParameterTypes = new[] { typeof(RequestContext) }; public void RegisterEndpointsFromType() { - if (simpleEndpointMethodInfos.Count == 0) + if (stringToTypeParameterConverters.Count == 0) RegisterDefaultConverters(); var t = typeof(T);