Skip to content

Commit

Permalink
Fixed FilterInjection for WebApi2
Browse files Browse the repository at this point in the history
  • Loading branch information
remogloor committed Oct 25, 2013
1 parent f0fbc9c commit d130476
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -39,7 +39,7 @@ public static class HttpActionDescriptorExtensionMethods
public static IEnumerable<object> GetCustomAttributes(this HttpActionDescriptor actionDescriptor, Type type)
{
return ((IEnumerable)typeof(HttpActionDescriptor)
.GetMethod("GetCustomAttributes").MakeGenericMethod(type)
.GetMethod("GetCustomAttributes", new Type[0]).MakeGenericMethod(type)
.Invoke(actionDescriptor, new object[0])).Cast<object>();
}

Expand Down

1 comment on commit d130476

@idodeclare
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello.

There are two extension methods in HttpActionDescriptorExtensionMethods, and this patch only fixed one. The other bug is still there as of unstable-9022.

Regards.

Please sign in to comment.