summaryrefslogtreecommitdiffhomepage
path: root/middleware/headers/new.go
diff options
context:
space:
mode:
authorMatthew Holt <[email protected]>2015-05-04 06:53:54 -0600
committerMatthew Holt <[email protected]>2015-05-04 11:02:46 -0600
commit995edf05661c42399bb1469a657860e2ec8e7bf7 (patch)
tree94614623ff1496ef8c989ae29ea76d73a09e8a20 /middleware/headers/new.go
parent5f32f9b1c8f6054afcaed9e34bc937170a672757 (diff)
downloadcaddy-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.go16
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
-}