mirror of
https://github.com/caddyserver/caddy.git
synced 2025-06-03 02:23:41 +08:00
Make RegisterPlugin() more consistent, having name as first argument
This commit is contained in:
@ -17,8 +17,7 @@ import (
|
||||
)
|
||||
|
||||
func init() {
|
||||
caddy.RegisterPlugin(caddy.Plugin{
|
||||
Name: "gzip",
|
||||
caddy.RegisterPlugin("gzip", caddy.Plugin{
|
||||
ServerType: "http",
|
||||
Action: setup,
|
||||
})
|
||||
|
Reference in New Issue
Block a user