Verify regex rules work correctly (#39)
- Remove debug for plain-text rules - Update htmx libs to 1.9.4
This commit is contained in:
parent
693a1df34f
commit
f43c431278
@ -26,8 +26,8 @@
|
||||
<PackageReference Include="BitBadger.AspNetCore.CanonicalDomains" Version="1.0.0" />
|
||||
<PackageReference Include="DotLiquid" Version="2.2.692" />
|
||||
<PackageReference Include="Giraffe" Version="6.2.0" />
|
||||
<PackageReference Include="Giraffe.Htmx" Version="1.9.2" />
|
||||
<PackageReference Include="Giraffe.ViewEngine.Htmx" Version="1.9.2" />
|
||||
<PackageReference Include="Giraffe.Htmx" Version="1.9.4" />
|
||||
<PackageReference Include="Giraffe.ViewEngine.Htmx" Version="1.9.4" />
|
||||
<PackageReference Include="NeoSmart.Caching.Sqlite" Version="6.1.0" />
|
||||
<PackageReference Include="RethinkDB.DistributedCache" Version="1.0.0-rc1" />
|
||||
<PackageReference Include="System.ServiceModel.Syndication" Version="7.0.0" />
|
||||
|
@ -40,7 +40,6 @@ type RedirectRuleMiddleware (next : RequestDelegate, log : ILogger<RedirectRuleM
|
||||
|> List.tryPick (fun rule ->
|
||||
match rule with
|
||||
| WebLogCache.CachedRedirectRule.Text (urlFrom, urlTo) ->
|
||||
log.LogInformation $"Checking {path} against from={urlFrom} and to={urlTo}"
|
||||
if ciEquals path urlFrom then Some urlTo else None
|
||||
| WebLogCache.CachedRedirectRule.RegEx (regExFrom, patternTo) ->
|
||||
if regExFrom.IsMatch path then Some (regExFrom.Replace (path, patternTo)) else None)
|
||||
|
Loading…
Reference in New Issue
Block a user