diff --git a/core/Piranha.AspNetCore/PiranhaMiddleware.cs b/core/Piranha.AspNetCore/PiranhaMiddleware.cs index d573116ba..c91aee0b5 100644 --- a/core/Piranha.AspNetCore/PiranhaMiddleware.cs +++ b/core/Piranha.AspNetCore/PiranhaMiddleware.cs @@ -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]; @@ -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;