mirror of
https://github.com/caddyserver/caddy.git
synced 2026-08-27 04:07:28 +00:00
httpcaddyfile: static_response -> respond; minor cleanups
This commit is contained in:
parent
db4c73dd58
commit
d030bfdae0
5 changed files with 17 additions and 11 deletions
|
|
@ -29,7 +29,6 @@ func init() {
|
|||
httpcaddyfile.RegisterHandlerDirective("encode", parseCaddyfile)
|
||||
}
|
||||
|
||||
// TODO: This is a good example of why UnmarshalCaddyfile is still a good idea... hmm.
|
||||
func parseCaddyfile(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHandler, error) {
|
||||
enc := new(Encode)
|
||||
err := enc.UnmarshalCaddyfile(h.Dispenser)
|
||||
|
|
@ -39,8 +38,6 @@ func parseCaddyfile(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHandler, error)
|
|||
return enc, nil
|
||||
}
|
||||
|
||||
// TODO: Keep UnmarshalCaddyfile pattern?
|
||||
|
||||
// UnmarshalCaddyfile sets up the handler from Caddyfile tokens. Syntax:
|
||||
//
|
||||
// encode [<matcher>] <formats...> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue