diff options
author | Matthew Holt <[email protected]> | 2015-05-04 06:53:54 -0600 |
---|---|---|
committer | Matthew Holt <[email protected]> | 2015-05-04 11:02:46 -0600 |
commit | 995edf05661c42399bb1469a657860e2ec8e7bf7 (patch) | |
tree | 94614623ff1496ef8c989ae29ea76d73a09e8a20 /middleware/headers/new.go | |
parent | 5f32f9b1c8f6054afcaed9e34bc937170a672757 (diff) | |
download | caddy-995edf05661c42399bb1469a657860e2ec8e7bf7.tar.gz caddy-995edf05661c42399bb1469a657860e2ec8e7bf7.zip |
Bringing in latest from master; refactoring under way
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 -} |