diff --git a/src/Core/Extensions/Basic.cs b/src/Core/Extensions/Basic.cs index 359faf8..562b5a5 100644 --- a/src/Core/Extensions/Basic.cs +++ b/src/Core/Extensions/Basic.cs @@ -333,7 +333,7 @@ internal static async Task ExecuteProxyOperationAsync(this HttpContext context, } internal static ValueTask GetEndpointFromComputerAsync(this HttpContext context, EndpointComputerToValueTask computer) => - computer(context, (context.GetRouteData()?.Values as IDictionary) ?? new Dictionary()); + computer(context, context.GetRouteData()?.Values); internal static EndpointComputerToValueTask GetRunProxyComputer(EndpointComputerToValueTask endpointComputer) { diff --git a/src/Core/Helpers/Helpers.cs b/src/Core/Helpers/Helpers.cs index 0bff089..64e35af 100644 --- a/src/Core/Helpers/Helpers.cs +++ b/src/Core/Helpers/Helpers.cs @@ -23,7 +23,7 @@ namespace AspNetCore.Proxy /// This takes the form `(, ) => `. /// /// The HTTP context of the current request at runtime. - /// The arguments of the current request at runtime. + /// The arguments of the current request at runtime. This may be `null`, if the route data is missing. /// The endpoint string as a . public delegate ValueTask EndpointComputerToValueTask(HttpContext context, IDictionary arguments);