summaryrefslogtreecommitdiff
path: root/plugins/headers/plugin.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-12-01 18:36:26 +0300
committerValery Piashchynski <[email protected]>2020-12-01 18:36:26 +0300
commit509db1b16de783819932e34703dec42bd99b51c9 (patch)
treed0b61be0ee53e793d7350c7805db18c31f7af3c4 /plugins/headers/plugin.go
parentf77ddd3109c300d0429e50bde19f86ea8c4883f8 (diff)
Finish Headers plugin tests
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)
}