Skip to content

Commit

Permalink
Merge pull request #1682 from successopen/fix-typo
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
tidyui committed Aug 8, 2021
2 parents 6d41aae + 979bcbf commit 7e5ac03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/Piranha.AspNetCore/PiranhaMiddleware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public override async Task Invoke(HttpContext context, IApi api, IApplicationSer
service.Site.Culture = site.Culture;
service.Site.Sitemap = await api.Sites.GetSitemapAsync(site.Id);

// Set prefered hostname & prefix
// Set preferred hostname & prefix
var siteHost = GetMatchingHost(site, hostname);
service.Site.Host = siteHost[0];
service.Site.SitePrefix = siteHost[1];
Expand Down Expand Up @@ -225,7 +225,7 @@ public override async Task Invoke(HttpContext context, IApi api, IApplicationSer
{
App.PostTypes.GetById(post.TypeId);

// Onlyc cache published posts
// Only cache published posts
if (post.IsPublished)
{
service.CurrentPost = post;
Expand Down

0 comments on commit 7e5ac03

Please sign in to comment.