More Middleware -> Plugin conversions (#1088)

Forgot about these.
This commit is contained in:
Miek Gieben
2017-09-16 14:13:28 +01:00
committed by GitHub
parent 6f874f0bd1
commit be47709270
15 changed files with 23 additions and 23 deletions

View File

@@ -49,8 +49,8 @@ func setup(c *caddy.Controller) error {
return nil
}
// allowedMiddleware has a list of plugin that can be used by autopath.
var allowedMiddleware = map[string]bool{
// allowedPlugins has a list of plugin that can be used by autopath.
var allowedPlugins = map[string]bool{
"@kubernetes": true,
"@erratic": true,
}
@@ -66,7 +66,7 @@ func autoPathParse(c *caddy.Controller) (*AutoPath, string, error) {
}
resolv := zoneAndresolv[len(zoneAndresolv)-1]
if resolv[0] == '@' {
_, ok := allowedMiddleware[resolv]
_, ok := allowedPlugins[resolv]
if ok {
mw = resolv[1:]
}