Skip to content

Commit

Permalink
chore: Disable ASP.NET Core 6+ browser injection by default. (#2052)
Browse files Browse the repository at this point in the history
  • Loading branch information
tippmar-nr authored Nov 9, 2023
1 parent e571ac1 commit 887061a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2103,7 +2103,7 @@ public bool EnableAspNetCore6PlusBrowserInjection
{
return _enableAspNetCore6PlusBrowserInjection.HasValue
? _enableAspNetCore6PlusBrowserInjection.Value
: (_enableAspNetCore6PlusBrowserInjection = TryGetAppSettingAsBoolWithDefault("EnableAspNetCore6PlusBrowserInjection", true)).Value;
: (_enableAspNetCore6PlusBrowserInjection = TryGetAppSettingAsBoolWithDefault("EnableAspNetCore6PlusBrowserInjection", false)).Value;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3241,8 +3241,8 @@ public bool AsyncHttpClientSegmentsDoNotCountTowardsParentExclusiveTimeTests(str
return defaultConfig.ForceSynchronousTimingCalculationHttpClient;
}

[TestCase(null, ExpectedResult = true)]
[TestCase("not a bool", ExpectedResult = true)]
[TestCase(null, ExpectedResult = false)]
[TestCase("not a bool", ExpectedResult = false)]
[TestCase("false", ExpectedResult = false)]
[TestCase("true", ExpectedResult = true)]
public bool AspNetCore6PlusBrowserInjectionTests(string localConfigValue)
Expand Down

0 comments on commit 887061a

Please sign in to comment.