From d030bfdae065c8776e8ac14c0a28f725ec05145c Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Mon, 16 Sep 2019 11:04:18 -0600 Subject: httpcaddyfile: static_response -> respond; minor cleanups --- modules/caddyhttp/encode/caddyfile.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'modules/caddyhttp/encode') diff --git a/modules/caddyhttp/encode/caddyfile.go b/modules/caddyhttp/encode/caddyfile.go index d23eab9..2f0e151 100644 --- a/modules/caddyhttp/encode/caddyfile.go +++ b/modules/caddyhttp/encode/caddyfile.go @@ -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 [] { -- cgit v1.2.3