summaryrefslogtreecommitdiff
path: root/plugins/headers/plugin.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/headers/plugin.go')
-rw-r--r--plugins/headers/plugin.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/headers/plugin.go b/plugins/headers/plugin.go
index dc0aab5a..f1c6e6f3 100644
--- a/plugins/headers/plugin.go
+++ b/plugins/headers/plugin.go
@@ -24,7 +24,7 @@ func (s *Plugin) Init(cfg config.Configurer) error {
const op = errors.Op("headers plugin init")
err := cfg.UnmarshalKey(RootPluginName, &s.cfg)
if err != nil {
- return errors.E(op, err)
+ return errors.E(op, errors.Disabled, err)
}
return nil
@@ -51,7 +51,6 @@ func (s *Plugin) Middleware(next http.Handler) http.HandlerFunc {
s.preflightRequest(w)
return
}
-
s.corsHeaders(w)
}