From 979bcbf7bcdc07f9e1389307d4a18ce1e6d7484f Mon Sep 17 00:00:00 2001 From: Success Go Date: Sun, 8 Aug 2021 14:30:45 +0800 Subject: [PATCH] Fix typo. --- core/Piranha.AspNetCore/PiranhaMiddleware.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;