Make RegisterPlugin() more consistent, having name as first argument

This commit is contained in:
Matthew Holt
2016-06-06 15:31:03 -06:00
parent 9b4134b287
commit d3860f95f5
23 changed files with 33 additions and 62 deletions

View File

@ -17,8 +17,7 @@ import (
)
func init() {
caddy.RegisterPlugin(caddy.Plugin{
Name: "gzip",
caddy.RegisterPlugin("gzip", caddy.Plugin{
ServerType: "http",
Action: setup,
})