mirror of
https://github.com/caddyserver/caddy.git
synced 2025-06-05 12:00:29 +08:00
Moved controller into its own file; other minor cleanups
This commit is contained in:
@ -15,10 +15,6 @@ func New(c middleware.Controller) (middleware.Middleware, error) {
|
||||
}
|
||||
|
||||
return func(next http.HandlerFunc) http.HandlerFunc {
|
||||
head := Headers{
|
||||
Next: next,
|
||||
Rules: rules,
|
||||
}
|
||||
return head.ServeHTTP
|
||||
return Headers{Next: next, Rules: rules}.ServeHTTP
|
||||
}, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user