Version 2.1 #41

Merged
danieljsummers merged 123 commits from version-2.1 into main 2024-03-27 00:13:28 +00:00
2 changed files with 2 additions and 3 deletions
Showing only changes of commit f43c431278 - Show all commits

View File

@ -26,8 +26,8 @@
<PackageReference Include="BitBadger.AspNetCore.CanonicalDomains" Version="1.0.0" /> <PackageReference Include="BitBadger.AspNetCore.CanonicalDomains" Version="1.0.0" />
<PackageReference Include="DotLiquid" Version="2.2.692" /> <PackageReference Include="DotLiquid" Version="2.2.692" />
<PackageReference Include="Giraffe" Version="6.2.0" /> <PackageReference Include="Giraffe" Version="6.2.0" />
<PackageReference Include="Giraffe.Htmx" Version="1.9.2" /> <PackageReference Include="Giraffe.Htmx" Version="1.9.4" />
<PackageReference Include="Giraffe.ViewEngine.Htmx" Version="1.9.2" /> <PackageReference Include="Giraffe.ViewEngine.Htmx" Version="1.9.4" />
<PackageReference Include="NeoSmart.Caching.Sqlite" Version="6.1.0" /> <PackageReference Include="NeoSmart.Caching.Sqlite" Version="6.1.0" />
<PackageReference Include="RethinkDB.DistributedCache" Version="1.0.0-rc1" /> <PackageReference Include="RethinkDB.DistributedCache" Version="1.0.0-rc1" />
<PackageReference Include="System.ServiceModel.Syndication" Version="7.0.0" /> <PackageReference Include="System.ServiceModel.Syndication" Version="7.0.0" />

View File

@ -40,7 +40,6 @@ type RedirectRuleMiddleware (next : RequestDelegate, log : ILogger<RedirectRuleM
|> List.tryPick (fun rule -> |> List.tryPick (fun rule ->
match rule with match rule with
| WebLogCache.CachedRedirectRule.Text (urlFrom, urlTo) -> | WebLogCache.CachedRedirectRule.Text (urlFrom, urlTo) ->
log.LogInformation $"Checking {path} against from={urlFrom} and to={urlTo}"
if ciEquals path urlFrom then Some urlTo else None if ciEquals path urlFrom then Some urlTo else None
| WebLogCache.CachedRedirectRule.RegEx (regExFrom, patternTo) -> | WebLogCache.CachedRedirectRule.RegEx (regExFrom, patternTo) ->
if regExFrom.IsMatch path then Some (regExFrom.Replace (path, patternTo)) else None) if regExFrom.IsMatch path then Some (regExFrom.Replace (path, patternTo)) else None)