diff options
Diffstat (limited to 'middleware/headers/new.go')
-rw-r--r-- | middleware/headers/new.go | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/middleware/headers/new.go b/middleware/headers/new.go deleted file mode 100644 index 28ddd582a..000000000 --- a/middleware/headers/new.go +++ /dev/null @@ -1,16 +0,0 @@ -package headers - -import "github.com/mholt/caddy/middleware" - -// New constructs and configures a new headers middleware instance. -func New(c middleware.Controller) (middleware.Middleware, error) { - - rules, err := parse(c) - if err != nil { - return nil, err - } - - return func(next middleware.Handler) middleware.Handler { - return Headers{Next: next, Rules: rules} - }, nil -} |