Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
CypherPotato committed Dec 4, 2024
1 parent 0c7e36e commit d571a8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Routing/Route.cs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ internal bool TrySetRouteAction(MethodInfo method, object? target, [NotNullWhen(
return false;
}
}
else if (retType.GetGenericTypeDefinition() == typeof(IAsyncEnumerable<>))
else if (retType.IsGenericType && retType.GetGenericTypeDefinition() == typeof(IAsyncEnumerable<>))
{
this._isAsyncEnumerable = true;
if (CheckAsyncReturnParameters(retType) is Exception rex)
Expand Down

0 comments on commit d571a8c

Please sign in to comment.