diff options
Diffstat (limited to 'plugins/headers')
-rw-r--r-- | plugins/headers/plugin.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/headers/plugin.go b/plugins/headers/plugin.go index 3f25a1ed..84194d7e 100644 --- a/plugins/headers/plugin.go +++ b/plugins/headers/plugin.go @@ -22,6 +22,9 @@ type Plugin struct { // misconfiguration. Services must not be used without proper configuration pushed first. func (s *Plugin) Init(cfg config.Configurer) error { const op = errors.Op("headers_plugin_init") + if !cfg.Has(PluginName) { + return errors.E(op, errors.Disabled) + } err := cfg.UnmarshalKey(RootPluginName, &s.cfg) if err != nil { return errors.E(op, errors.Disabled, err) |