httpcaddyfile: Global storage configuration (closes #2758)

This commit is contained in:
Matthew Holt
2019-09-19 12:42:36 -06:00
parent 40e05e5a01
commit ba29f9d41d
8 changed files with 98 additions and 40 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ func (enc *Encode) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
name := d.Val()
mod, err := caddy.GetModule("http.encoders." + name)
if err != nil {
return fmt.Errorf("getting encoder module '%s': %v", mod.Name, err)
return fmt.Errorf("getting encoder module '%s': %v", name, err)
}
unm, ok := mod.New().(caddyfile.Unmarshaler)
if !ok {