Skip to content

Commit

Permalink
Added a BaseHttpTestWithMvcViews that set the ContentRoot
Browse files Browse the repository at this point in the history
Fixed an issue in ServiceCollectionExtensions
  • Loading branch information
Carl-Hugo committed Apr 20, 2018
1 parent f0f2a20 commit a6a7c2e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static IServiceCollection RemoveFilter<TFilter>(this IServiceCollection s
{
return services.PostConfigure<MvcOptions>(options =>
{
var filters = options.Filters.Where(x => x.GetType() == typeof(RequireHttpsAttribute));
var filters = options.Filters.Where(x => x.GetType() == typeof(RequireHttpsAttribute)).ToArray();
if(filters != null && filters.Count() > 0)
{
foreach (var filter in filters)
Expand Down

0 comments on commit a6a7c2e

Please sign in to comment.