http: Patch path matcher to ignore dots and spaces (#2917)

(Try saying "patch path match" ten times fast)
This commit is contained in:
Matthew Holt 2019-12-17 10:14:04 -07:00
parent 6455efa5d3
commit dae4913fe3
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5
4 changed files with 23 additions and 2 deletions

View file

@ -115,7 +115,7 @@ func (routes RouteList) Provision(ctx caddy.Context) error {
// matchers
matchersIface, err := ctx.LoadModule(&route, "MatcherSetsRaw")
if err != nil {
return fmt.Errorf("loadng matchers in route %d: %v", i, err)
return fmt.Errorf("loading matchers in route %d: %v", i, err)
}
err = routes[i].MatcherSets.FromInterface(matchersIface)
if err != nil {