diff options
Diffstat (limited to 'modules/caddyhttp/rewrite')
-rw-r--r-- | modules/caddyhttp/rewrite/rewrite.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/rewrite/rewrite.go b/modules/caddyhttp/rewrite/rewrite.go index 9bd01c0..b7878a5 100644 --- a/modules/caddyhttp/rewrite/rewrite.go +++ b/modules/caddyhttp/rewrite/rewrite.go @@ -12,7 +12,7 @@ import ( func init() { caddy2.RegisterModule(caddy2.Module{ Name: "http.middleware.rewrite", - New: func() (interface{}, error) { return new(Rewrite), nil }, + New: func() interface{} { return new(Rewrite) }, }) } |