diff options
author | Valery Piashchynski <[email protected]> | 2020-12-01 18:36:26 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-12-01 18:36:26 +0300 |
commit | 509db1b16de783819932e34703dec42bd99b51c9 (patch) | |
tree | d0b61be0ee53e793d7350c7805db18c31f7af3c4 /plugins/headers/plugin.go | |
parent | f77ddd3109c300d0429e50bde19f86ea8c4883f8 (diff) |
Finish Headers plugin tests
Diffstat (limited to 'plugins/headers/plugin.go')
-rw-r--r-- | plugins/headers/plugin.go | 3 |
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) } |