mirror of
https://github.com/caddyserver/caddy.git
synced 2025-06-02 01:33:11 +08:00
Differentiating middleware and responders has one benefit, namely that it's clear which module provides the response, but even then it's not a great advantage. Linear handler config makes a little more sense, giving greater flexibility and simplifying the core a bit, even though it's slightly awkward that handlers which are responders may not use the 'next' handler that is passed in at all.
This commit is contained in:
@ -25,7 +25,7 @@ import (
|
||||
|
||||
func init() {
|
||||
caddy.RegisterModule(caddy.Module{
|
||||
Name: "http.middleware.rewrite",
|
||||
Name: "http.handlers.rewrite",
|
||||
New: func() interface{} { return new(Rewrite) },
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user