diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2019-07-09 12:58:39 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2019-07-09 12:58:39 -0600 |
commit | 4a3a418156e25aae17659142a4bf9259d7702c44 (patch) | |
tree | 559461c6504b7c1be38e0ddfbf0793b473ef8d66 /modules/caddyhttp/rewrite | |
parent | 6dfba5fda82e216cffb117a62fcefbe61cd25a34 (diff) |
Flatten HTTP handler config (#2662)
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.
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 9060e22..ac113ff 100644 --- a/modules/caddyhttp/rewrite/rewrite.go +++ b/modules/caddyhttp/rewrite/rewrite.go @@ -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) }, }) } |