Version 2.1 #41
@ -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" />
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user