Skip to content

Commit

Permalink
.NET 6 and policy.
Browse files Browse the repository at this point in the history
  • Loading branch information
marisks committed Oct 24, 2022
1 parent d468cd0 commit b27833f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
using EPiServer.Find.Commerce;
using EPiServer.Find.Framework.BestBets;
using EPiServer.Find.Framework.Statistics;
using EPiServer.Find.Helpers;
using EPiServer.Find.Statistics;
using EPiServer.Find.UnifiedSearch;
using EPiServer.Globalization;
Expand Down Expand Up @@ -260,7 +259,7 @@ public ContentSearchViewModel SearchContent(FilterOptionViewModel filterOptions)
query = query.Filter(x => !(x as FoundationPageData).ExcludeFromSearch.Exists() | (x as FoundationPageData).ExcludeFromSearch.Match(false));

// obey DNT
var doNotTrackHeader = HttpContextHelper.Current.HttpContext.Request.Headers["DNT"].ToString();
var doNotTrackHeader = EPiServer.Find.Helpers.HttpContextHelper.Current.HttpContext.Request.Headers["DNT"].ToString();
if ((doNotTrackHeader == null || doNotTrackHeader.Equals("0")) && filterOptions.TrackData)
{
query = query.Track();
Expand Down
2 changes: 1 addition & 1 deletion sandbox/Foundation/src/Foundation/Foundation.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<VersionPrefix>2021.04.1.0</VersionPrefix>
<VersionSuffix></VersionSuffix>
<PackageVersion Condition=" '$(PackageVersion)' == '' ">$(VersionPrefix)$(VersionSuffix)</PackageVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@
using Geta.Optimizely.Tags.Core;
using Geta.Optimizely.Tags.Pages.Geta.Optimizely.Tags.Components.Pager;
using Geta.Optimizely.Tags.Pages.Geta.Optimizely.Tags.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using X.PagedList;

namespace Geta.Optimizely.Tags.Pages.Geta.Optimizely.Tags
{
[Authorize(Constants.PolicyName)]
public class Index : PageModel
{
private readonly ITagRepository _tagRepository;
Expand Down
2 changes: 1 addition & 1 deletion src/Geta.Optimizely.Tags/Geta.Optimizely.Tags.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
<PackageId>Geta.Optimizely.Tags</PackageId>
<Title>Geta Optimizely Tags</Title>
Expand Down

0 comments on commit b27833f

Please sign in to comment.